mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 20:55:07 +00:00
![]() We use strtod to convert a string to number after checking whether the string is [+-]Infinity, however strtod also checks for either 'inf' or 'infinity' in a case-insensitive. There are still valid cases for strtod to return infinity like 10e100000 so we just check if the "number" contains 'i' or 'I' in which case the strtod infinity is not valid. |
||
---|---|---|
.. | ||
Number-constants.js | ||
Number.isFinite.js | ||
Number.isInteger.js | ||
Number.isNaN.js | ||
Number.isSafeInteger.js | ||
Number.js | ||
Number.parseFloat.js | ||
Number.parseInt.js | ||
Number.prototype.js | ||
Number.prototype.toExponential.js | ||
Number.prototype.toFixed.js | ||
Number.prototype.toLocaleString.js | ||
Number.prototype.toPrecision.js | ||
Number.prototype.toString.js | ||
Number.prototype.valueOf.js |