how to convert float to char (ccs)

Status
Not open for further replies.

erenet

Newbie level 2
Joined
Nov 3, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
ı want to convert float variables and i find ftoa function on the net. but ı couldn't use that because ccs of the libraries do not have ftoa. how can i convert this?
 

You can use casting, a common method in C. Type (char) in front of the float variable and you are done. For more details on this check a book about C.
 

You can use casting, a common method in C. Type (char) in front of the float variable and you are done. For more details on this check a book about C.
you mean want to use in this way?
ex:
float variable1=0.98;
addition=(char)variable1 + 88;

is it correct???????????
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…