Hmmm, worked for me. Is the exception being thrown with the above number, or something else (post the something else if that is the case)? You may have to fiddle with the DecimalFormat object a bit,...
Type: Posts; User: copeg
Hmmm, worked for me. Is the exception being thrown with the above number, or something else (post the something else if that is the case)? You may have to fiddle with the DecimalFormat object a bit,...
See the DecimalFormat class. You can create the class with a specified format, then parse into a number. Give the code below a shot
String file = "8.86162677393184E-02";
try{
DecimalFormat...