Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top