diff --git a/package-lock.json b/package-lock.json index d6e9cb10..05313c01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "9.0.0", "license": "SEE LICENSE IN https://tc39.es/ecma402/#sec-copyright-and-software-license", "dependencies": { - "@tc39/ecma262-biblio": "=2.1.3014", + "@tc39/ecma262-biblio": "=2.1.3018", "ecmarkup": "^22.0.0" } }, @@ -195,7 +195,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -218,7 +217,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=18" } @@ -290,9 +288,9 @@ } }, "node_modules/@tc39/ecma262-biblio": { - "version": "2.1.3014", - "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.3014.tgz", - "integrity": "sha512-BYxwDmRN2So2kwZccBiX1r5pakeIEMX7JdEjV2tx1QJi5jBC/ky/yV5Rx08VyUnxhTmyIZV1U5sjD4H1aP4WOw==", + "version": "2.1.3018", + "resolved": "https://registry.npmjs.org/@tc39/ecma262-biblio/-/ecma262-biblio-2.1.3018.tgz", + "integrity": "sha512-kWFnmj5NWeMEvZ2unIdKL8aHBqTdlUwQ+J1Eh2hgmJBxxLGvnocwpjPtx6SItOpocteHs5dblmup4hqBnpSadg==", "license": "SEE LICENSE IN LICENSE.md" }, "node_modules/agent-base": { diff --git a/package.json b/package.json index 0e878094..8939a1e5 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,6 @@ "homepage": "https://tc39.es/ecma402/", "dependencies": { "ecmarkup": "^22.0.0", - "@tc39/ecma262-biblio": "=2.1.3014" + "@tc39/ecma262-biblio": "=2.1.3018" } } diff --git a/spec/numberformat.html b/spec/numberformat.html index fa31c7b5..5adbe17f 100644 --- a/spec/numberformat.html +++ b/spec/numberformat.html @@ -1533,13 +1533,13 @@

1. Return 0. 1. If _x_ < 0, then 1. Let _x_ = -_x_. - 1. Let _magnitude_ be the base 10 logarithm of _x_ rounded down to the nearest integer. + 1. Let _magnitude_ be floor(log10(_x_)). 1. Let _exponent_ be ComputeExponentForMagnitude(_numberFormat_, _magnitude_). 1. Let _x_ be _x_ × 10-_exponent_. 1. Let _formatNumberResult_ be FormatNumericToString(_numberFormat_, _x_). 1. If _formatNumberResult_.[[RoundedNumber]] = 0, then 1. Return _exponent_. - 1. Let _newMagnitude_ be the base 10 logarithm of _formatNumberResult_.[[RoundedNumber]] rounded down to the nearest integer. + 1. Let _newMagnitude_ be floor(log10(_formatNumberResult_.[[RoundedNumber]])). 1. If _newMagnitude_ is _magnitude_ - _exponent_, then 1. Return _exponent_. 1. Return ComputeExponentForMagnitude(_numberFormat_, _magnitude_ + 1).