1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-18 04:02:10 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Number
Jelle Raaijmakers c58193bafa LibJS: Support large number of decimals in Number.prototype.toFixed
The spec asks us to perform some calculations that quickly exceed an
`u64`, but instead of jumping through hoops we can rely on our AK
implementation of floating point formatting to come up with the
correctly rounded result.

Note that most other JS engines seem to diverge from the spec as well
and fall back to a generic dtoa path.
2023-10-18 19:39:30 -04:00
..
Number-constants.js AK+LibJS: Make Number.MIN_VALUE a denormal 2023-07-02 21:19:09 +01:00
Number.isFinite.js
Number.isInteger.js
Number.isNaN.js
Number.isSafeInteger.js
Number.js LibJS: Handle non-decimal integer literals in Value::to_number 2022-08-30 01:00:48 +01:00
Number.parseFloat.js
Number.parseInt.js
Number.prototype.js
Number.prototype.toExponential.js LibJS: Use more accurate number-to-string method in Number toExponential 2022-11-04 21:12:10 +00:00
Number.prototype.toFixed.js LibJS: Support large number of decimals in Number.prototype.toFixed 2023-10-18 19:39:30 -04:00
Number.prototype.toLocaleString.js
Number.prototype.toPrecision.js LibJS: Use more accurate number-to-string method in Number toPrecision 2022-11-04 21:12:10 +00:00
Number.prototype.toString.js LibJS: Make int_part a double in StringPrototype::to_string 2023-03-01 10:53:31 +01:00
Number.prototype.valueOf.js