Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: raised minimum/maximum fractional digits from 20 to 100 #786

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ <h1>
1. Set _intlObj_.[[MaximumSignificantDigits]] to 21.
1. If _needFd_ is *true*, then
1. If _hasFd_ is *true*, then
1. Set _mnfd_ to ? DefaultNumberOption(_mnfd_, 0, 20, *undefined*).
1. Set _mxfd_ to ? DefaultNumberOption(_mxfd_, 0, 20, *undefined*).
1. Set _mnfd_ to ? DefaultNumberOption(_mnfd_, 0, 100, *undefined*).
1. Set _mxfd_ to ? DefaultNumberOption(_mxfd_, 0, 100, *undefined*).
1. If _mnfd_ is *undefined*, set _mnfd_ to min(_mnfdDefault_, _mxfd_).
1. Else if _mxfd_ is *undefined*, set _mxfd_ to max(_mxfdDefault_, _mnfd_).
1. Else if _mnfd_ is greater than _mxfd_, throw a *RangeError* exception.
Expand Down Expand Up @@ -1303,7 +1303,7 @@ <h1>ToRawFixed ( _x_, _minFraction_, _maxFraction_, _roundingIncrement_, _unsign
</emu-eqn>

<p>
When the ToRawFixed abstract operation is called with arguments _x_ (which must be a finite non-negative mathematical value), _minFraction_, _maxFraction_ (which must be integers between 0 and 20), _roundingIncrement_ (an integer), and _unsignedRoundingMode_ (a specification type from the *Unsigned Rounding Mode* column of <emu-xref href="#table-intl-unsigned-rounding-modes"></emu-xref> or *undefined*), the following steps are taken:
When the ToRawFixed abstract operation is called with arguments _x_ (which must be a finite non-negative mathematical value), _minFraction_, _maxFraction_ (which must be integers between 0 and 100), _roundingIncrement_ (an integer), and _unsignedRoundingMode_ (a specification type from the *Unsigned Rounding Mode* column of <emu-xref href="#table-intl-unsigned-rounding-modes"></emu-xref> or *undefined*), the following steps are taken:
</p>

<emu-alg>
Expand Down