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 CCS Technical Support

ascii problem

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



Joined: 22 Nov 2006
Posts: 6

View user's profile Send private message Send e-mail MSN Messenger

ascii problem
PostPosted: Mon Jan 01, 2007 11:42 pm     Reply with quote

I have this array
Code:

y[4]="1.2"

How can i change this numbre to a float number ??. I need to do mathematical operations on it but the ascii representaion is not the same as the real binary representation please help me Smile .
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 02, 2007 12:04 am     Reply with quote

Look at the atof() function in the CCS manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
doneaxe



Joined: 22 Nov 2006
Posts: 6

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Tue Jan 02, 2007 5:30 pm     Reply with quote

thank you very much the problem is solved thanx again
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