wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

parseDouble incorrect for some values with the new iOS vm #1283

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The problem is with the new iOS vm: for some strings parseDouble works 
incorrectly.

What steps will reproduce the problem?
1. execute the following code:

        String a = "59.4430556378231";
        System.out.println("String = " + a);
        System.out.println("double = " + Double.parseDouble(a));

What is the expected output? What do you see instead?

On cn1 simulator is written:

String = 59.4430556378231
double = 59.4430556378231

but when running iOS code then it is written:

String = 59.4430556378231
double = 451648.650118

What version of the product are you using? On what operating system?

the latest buildserver

Original issue reported on code.google.com by jaanus.h...@gmail.com on 14 Jan 2015 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by st...@weblite.ca on 28 Jan 2015 at 12:50

GoogleCodeExporter commented 9 years ago
Fixed.
https://code.google.com/p/codenameone/source/detail?r=2051
Will be included in next update.

Original comment by st...@weblite.ca on 28 Jan 2015 at 11:53