3 ms·
Why have a JSON number? Why not "just stick with" decimal strings?
by paulddraper 7y ago
Why have a JSON number?
Why not "just stick with" decimal strings?
- dwaltrip 7y agoI see your point, but numbers are easier to standardize than dates, so there is some logic to drawing the line there. It has to be drawn somewhere.
- paulddraper 7y ago> numbers are easier to standardize than dates Is this a joke? JSON numbers are....I don't know what they even are. JavaScript -- the originator of JSON -- can't support 64-bit integers in JSON. Nor can it support decimal fractions in JSON, despite JSON using decimals. And yet JSON numbers also aren'ty IEEE-754 floating point numbers, as they lack +/-Infinity and NaN. JSON numbers are ill-defined and unique from every other "number" concept in any language or format.