You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wow. Ok. It may be helpful for users of this library if this behavior was documented. I.e., that ujson cannot, by default, represent numbers smaller than 1e-10 (or so). And certainly never any numbers smaller than 1e-17.
json.dumps(1e-40) ==> '1e-40'
json.dumps(1e100) ==> '1e+100'
json.dumps(1.48974985793234e-50) ==> '1.48974985793234e-50'
ujson.dumps(1e-40) ==> '0.0'
ujson.dumps(1e100) ==> '1.000000000000000e+100'
ujson.dumps(1.48974985793234e-50) ==> '0.0'
The text was updated successfully, but these errors were encountered: