Dec 9, 2010 #1 E 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?
ı 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?
Dec 9, 2010 #2 T Tom Duke Member level 2 Joined Sep 24, 2010 Messages 51 Helped 25 Reputation 50 Reaction score 24 Trophy points 1,288 Location Athens, Greece Activity points 1,518 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.
Dec 10, 2010 #3 E Embedded Partner Full Member level 5 Joined Nov 29, 2010 Messages 247 Helped 42 Reputation 84 Reaction score 37 Trophy points 1,308 Location Hubli(INDIA) Activity points 2,636 Tom Duke said: 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. Click to expand... you mean want to use in this way? ex: float variable1=0.98; addition=(char)variable1 + 88; is it correct???????????
Tom Duke said: 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. Click to expand... you mean want to use in this way? ex: float variable1=0.98; addition=(char)variable1 + 88; is it correct???????????
Dec 10, 2010 #4 T Tom Duke Member level 2 Joined Sep 24, 2010 Messages 51 Helped 25 Reputation 50 Reaction score 24 Trophy points 1,288 Location Athens, Greece Activity points 1,518 Yes, in C it is. Try it.