Skip to content

Commit a306a00

Browse files
committed
Prefer intervals
1 parent 652e033 commit a306a00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec.emu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ location: https://github.com/tc39/proposal-amount/
9696
1. If _fractionDigits_ is not in the inclusive interval from 0 to 100, throw a *RangeError* exception.
9797
1. Else if _significantDigits_ is not *undefined*, then
9898
1. If _significantDigits_ is not an integral Number, throw a *RangeError* exception.
99-
1. If _significantDigits_ &lt; *1*<sub>𝔽</sub> or _significantDigits_ > *21*<sub>𝔽</sub>, throw a *RangeError* exception.
99+
1. Set _significantDigits_ to ℝ(_significantDigits_).
100+
1. If _significantDigits_ is not in the inclusive interval from 1 to 21, throw a *RangeError* exception.
100101
1. If _unit_ is the empty String, throw a *RangeError* exception.
101102
1. Return the Record { [[FractionDigits]]: _fractionDigits_, [[RoundingMode]]: _roundingMode_, [[SignificantDigits]]: _significantDigits_, [[Unit]]: _unit_ }.
102103
</emu-alg>

0 commit comments

Comments
 (0)