paulbartrum / jurassic

A .NET library to parse and execute JavaScript code.
MIT License
868 stars 121 forks source link

Result of `JSON.stringify(99999.9999999999)` is `"099999.9999999999"` #193

Closed ghost closed 3 years ago

ghost commented 3 years ago

Related to #180 where the issue was partially fixed.

paulbartrum commented 3 years ago

How do you find these? lol

In my fix I'm now more consistently double-checking the Log10 result, which should resolve the issue for good. (I hope.)

ghost commented 3 years ago

Thank you! The fix works great even with the negative numbers.