Expand description
JS number semantics the client has to reproduce exactly:
Number.prototype.toString (also what JSON.stringify writes) and
Number(string).
Functionsยง
- format
String(n)in JS, i.e. ECMAScriptNumber::toString(n, 10).- is_
int32 (n | 0) === nin JS: whethernis exactly an int32.-0counts, because-0 === 0.- is_
js_ whitespace - ECMAScript
WhiteSpaceplusLineTerminator. - is_
safe_ integer Number.isSafeInteger(n)in JS.- parse
Number(string)in JS (ECMAScriptStringToNumber): trims JS whitespace, maps the empty string to 0, and accepts decimal,Infinity, and0x/0o/0bliterals. Anything else isNaN.