CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

convert char to float

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
filjoa



Joined: 04 May 2008
Posts: 260

View user's profile Send private message

convert char to float
PostPosted: Fri May 16, 2008 5:12 am     Reply with quote

Hi

how I can convert an char to a float with a function?
for example I have:
string="1.23" how I can convert to float n=1.23 for after make cacl with n...

regards
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: convert char to float
PostPosted: Fri May 16, 2008 5:40 am     Reply with quote

Use the built-in function atof

Robert Scott
Real-Time Specialties
filjoa



Joined: 04 May 2008
Posts: 260

View user's profile Send private message

PostPosted: Fri May 16, 2008 6:00 am     Reply with quote

hi
thanks ... problem solved

regards
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group