TiiToo / vegas

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

JSON Number parsing error. #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When your library is used to parse numbers in the format 
/(\d+(\.\d*)?|\.\d+)[eE][+-]?\d+/ the portion after and including the "e" is 
ignored, despite being valid and in-spec. All other libraries correctly parse 
these values, within the limits of floating point accuracy.

Example values:

1e250
1e+250
1e-250
1.5e5
.5e-1

Original issue reported on code.google.com by mr.wrait...@gmail.com on 12 Jun 2012 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 12 Jun 2012 at 6:15

GoogleCodeExporter commented 9 years ago
Fixed in VEGAS 1.9.5.2476, use the new version of vegas.swc to fix this problem 
in your code !

See : http://code.google.com/p/vegas/source/detail?r=2476

Note : you can use too system.eden to parse the eden string expression, for the 
moment eden must be fixed to to support the "." first character and the "E" 
uppercase character but work fine with the rest.

Original comment by ekamel...@gmail.com on 12 Jun 2012 at 8:47