get the float value with 5 decimal place [modified]
-
hi, how do i set the decimal place of a float? i have, double Value = 3.40292e+038; then i want to get the float value with 5 decimal place. First i need to cast double into float, float x=(float)Value; what code should i use to be able to get x==3.40282e+038?
modified on Thursday, December 13, 2007 12:12:20 AM
-
hi, how do i set the decimal place of a float? i have, double Value = 3.40292e+038; then i want to get the float value with 5 decimal place. First i need to cast double into float, float x=(float)Value; what code should i use to be able to get x==3.40282e+038?
modified on Thursday, December 13, 2007 12:12:20 AM
Do you have this working yet?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon