I want to convert the string to float with out losing it's precision.
String str = "140000.01";
float val = Float.valueOf(str);
Here, I'm getting the output i.e float value as 140000.02, is there any way to convert it into float without losing precision.