Intl.NumberFormat round option S0
- Stage: Stage 0
- Status: Active
- ECMAScript edition: —
- Synchronized: Aug 28, 2026
- 中文译文 · Source repository
This proposal introduces a round option to Intl.NumberFormat to allow specifying a rounding function other than the default "half-even", such as Math.ceil, Math.floor, or Math.trunc. The proposal cites the Unicode Technical Standard #35 as a reference.
The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.
NumberFormat round option
Proposal for stage 0
Allows to select a rounding function for NumberFormat different than round "half-even". For example: ceil, floor, or truncate.
Such option is present on Unicode Technical Standard #35, part 3 Numbers, which says "An implementation may allow the specification of a rounding mode to determine how values are rounded".
http://www.unicode.org/reports/tr35/tr35-numbers.html#Rounding