mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 05:25:09 +00:00
![]() The largest exponents we compute are on the order of 10^21 (governed by the maximumSignificantDigits option, which has a max value of 21). That is too large to fit into the i64 we were using when multiplying this exponent by the value to be formatted. Instead, split up the logic to multiply that value by this exponent based on the value's underlying type: Number: Do not cast the result of pow() to an i64, and perform the follow-up multiplication with doubles. BigInt: Do not use pow(). Instead, compute the exponent as a BigInt from the start, then perform the follow-up multiplication with that BigInt. |
||
---|---|---|
.. | ||
NumberFormat.@@toStringTag.js | ||
NumberFormat.js | ||
NumberFormat.prototype.format.js | ||
NumberFormat.prototype.formatToParts.js | ||
NumberFormat.prototype.resolvedOptions.js | ||
NumberFormat.supportedLocalesOf.js |