View Single Post
Old Feb 7th, 2007, 1:15 AM   #1
programmingnoob
Hobbyist Programmer
 
Join Date: Feb 2006
Posts: 155
Rep Power: 3 programmingnoob is on a distinguished road
float - cut down digts?

you know if you do float x = 12/12.0;
it'll give you x = 1.00000

now what do i do if i want to cout the result at 1.0

do I have to convert x into a string and take out "characters" or what? that just doesnt sound very sophiscated
i feel there is better approach to it?
programmingnoob is offline   Reply With Quote