Skip to content

Commit 9613358

Browse files
FrankYFTangptomato
authored andcommitted
Sync the set of RoundingMode
GetUnsignedRoundingMode now includes additional RoundingModes expand, halfCeil, halfFloor, halfTrunc and halfEven. Sync spec text in RoundNumberToIncrement, ToTemporalRoundingMode, NegateTemporalRoundingMode to match it.
1 parent 2e39298 commit 9613358

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

spec/abstractops.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h1>ToTemporalRoundingMode ( _normalizedOptions_, _fallback_ )</h1>
106106
</p>
107107
</emu-note>
108108
<emu-alg>
109-
1. Return ? GetOption(_normalizedOptions_, *"roundingMode"*, *"string"*, « *"ceil"*, *"floor"*, *"trunc"*, *"halfExpand"* », _fallback_).
109+
1. Return ? GetOption(_normalizedOptions_, *"roundingMode"*, *"string"*, « *"ceil"*, *"floor"*, *"expand"*, *"trunc"*, *"halfCeil"*, *"halfFloor"*, *"halfExpand"*, *"halfTrunc"*, *"halfEven"* », _fallback_).
110110
</emu-alg>
111111
</emu-clause>
112112

@@ -123,6 +123,8 @@ <h1>NegateTemporalRoundingMode ( _roundingMode_ )</h1>
123123
<emu-alg>
124124
1. If _roundingMode_ is *"ceil"*, return *"floor"*.
125125
1. If _roundingMode_ is *"floor"*, return *"ceil"*.
126+
1. If _roundingMode_ is *"halfCeil"*, return *"halfFloor"*.
127+
1. If _roundingMode_ is *"halfFloor"*, return *"halfCeil"*.
126128
1. Return _roundingMode_.
127129
</emu-alg>
128130
</emu-clause>
@@ -748,7 +750,7 @@ <h1>
748750
RoundNumberToIncrement (
749751
_x_: a mathematical value,
750752
_increment_: an integer,
751-
_roundingMode_: *"ceil"*, *"floor"*, *"trunc"*, or *"halfExpand"*,
753+
_roundingMode_: *"ceil"*, *"floor"*, *"expand"*, *"trunc"*, *"halfCeil"*, *"halfFloor"*, *"halfExpand"*, *"halfTrunc"*, or *"halfEven"*,
752754
): an integer
753755
</h1>
754756
<dl class="header">

spec/zoneddatetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ <h1>
11671167
_showOffset_: one of *"auto"* or *"never"*,
11681168
optional _increment_: an integer,
11691169
optional _unit_: one of *"minute"*, *"second"*, *"millisecond"*, *"microsecond"*, or *"nanosecond"*,
1170-
optional _roundingMode_: one of *"ceil"*, *"floor"*, *"trunc"*, or *"halfExpand"*,
1170+
optional _roundingMode_: one of *"ceil"*, *"floor"*, *"expand"*, *"trunc"*, *"halfCeil"*, *"halfFloor"*, *"halfExpand"*, *"halfTrunc"*, or *"halfEven"*,
11711171
): either a normal completion containing a String or an abrupt completion
11721172
</h1>
11731173
<dl class="header">

0 commit comments

Comments
 (0)