Hi,
I am converting a
string "149368.87" to a float. The problem is, the fractional part "87" is changed to 88. please refer the code and the output.
How to solve this problem?
Code:
String val = "149368.87";
float f = Float.parseFloat( val);
System.out.println(f);
Ouput:
149368.88
SCSecA,SCNA,SCSA,SCWCD,SCJP