You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests were recently added to ensure that rounding is always with respect to the Big Bang, yet the current spec for Temporal.Instant.prototype.round operates directly on instant.[[Nanoseconds]], which can be negative.
I'm guessing the spec needs updating?
The text was updated successfully, but these errors were encountered:
…t V3
We intend to standardize on the same rounding modes as Intl.NumberFormat
(see #1038), so it makes sense to use the same abstract operations, namely
GetUnsignedRoundingMode and ApplyUnsignedRoundingMode.
Note that this does not yet add user-visible support for the full set of
rounding modes that Intl.NumberFormat does; that (#1038) is a normative
change that we'll apply once Intl.NumberFormat goes to Stage 4.
However, this way of expressing rounding makes it easier to make that
change in the future, and makes it easier to address #2191 in the short
term.
RoundTowardsZero stays the same, since that is used for several other
things as well as rounding according to a rounding mode.
…t V3
We intend to standardize on the same rounding modes as Intl.NumberFormat
(see #1038), so it makes sense to use the same abstract operations, namely
GetUnsignedRoundingMode and ApplyUnsignedRoundingMode.
Note that this does not yet add user-visible support for the full set of
rounding modes that Intl.NumberFormat does; that (#1038) is a normative
change that we'll apply once Intl.NumberFormat goes to Stage 4.
However, this way of expressing rounding makes it easier to make that
change in the future, and makes it easier to address #2191 in the short
term.
RoundTowardsZero stays the same, since that is used for several other
things as well as rounding according to a rounding mode.
Tests were recently added to ensure that rounding is always with respect to the Big Bang, yet the current spec for Temporal.Instant.prototype.round operates directly on
instant.[[Nanoseconds]]
, which can be negative.I'm guessing the spec needs updating?
The text was updated successfully, but these errors were encountered: