
24 May
2011
24 May
'11
7:55 p.m.
Ahoy there, I've found a bug in function parseDouble. In short, the function is unable to parse float numbers such as ".12" or "12.". This simple patch fixes the issue: --- Convert.java.old 2011-05-24 21:37:52.000000000 +0200 +++ Convert.java 2011-05-24 21:38:31.000000000 +0200 @@ -180,7 +180,7 @@ if (isNegative) decimal = -decimal; - if (decimalPoint > 0) + if (decimalPoint >= 0 && decimalPoint < i - 1) return decimal / PowersOfTen[i - decimalPoint - 2]; else return decimal; Cheers, Alin