2 ms·
> Do we really need both `0` and `-0`, stuff like that. Well, yeah since signed zeros are a thing. Chrome: > JSON.parse('-0.0') -0 > JSON.parse('0.0') 0 p
by patrec 9y ago
> Do we really need both `0` and `-0`, stuff like that.
Well, yeah since signed zeros are a thing.
Chrome:
> JSON.parse('-0.0')
-0
> JSON.parse('0.0')
0
python:
In [3]: json.loads('-0.0')
Out[3]: -0.0
In [4]: json.loads('0.0')
Out[4]: 0.0