1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 10:44:58 +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 LibJS/Tests: Enable Number.isInteger() test that now passes 2022-01-24 20:39:01 +00:00
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 LibJS: Add Number.parseInt 2021-06-18 10:29:33 +01:00
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 LibJS: Implement ECMA-402 Number.prototype.toLocaleString 2021-11-17 09:01:32 +00:00
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 LibJS: Change wording of ErrorType::NotA to be independent of context 2021-09-12 00:16:39 +02:00