|
-
May 1st, 2004, 09:06 AM
#1
convert char to float???
Hello everybody,
I need an urgent answer to a question: how do you convert a character in C++ into float? I need to do a float computation. I tried converting the char into integer , but even that doesnt work (i used strtoi, atoi, and char-'0'). Then my friend says even if you convert to int, the float computation of float =int/int is wrong. If you know how to , please give a short example.
Thanks thannks thanks!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|