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: Fix precision 0 issue in TemporalDurationToString #1860

Merged
merged 1 commit into from Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/duration.html
Expand Up @@ -1498,7 +1498,9 @@ <h1>TemporalDurationToString ( _years_, _months_, _weeks_, _days_, _hours_, _min
1. Let _decimalPart_ be _fraction_ formatted as a nine-digit decimal number, padded to the left with zeroes if necessary.
1. If _precision_ is *"auto"*, then
1. Set _decimalPart_ to the longest possible substring of _decimalPart_ starting at position 0 and not ending with the code unit 0x0030 (DIGIT ZERO).
1. Else if _precision_ ≠ 0, then
1. Else if _precision_ = 0, then
1. Set _decimalPart_ to *""*.
1. Else,
1. Set _decimalPart_ to the substring of _decimalPart_ from 0 to _precision_.
1. Let _secondsPart_ be abs(_seconds_) formatted as a decimal number.
1. If _decimalPart_ is not *""*, then
Expand Down