-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rounding Issues in format duration
#12858
Comments
Interesting, related note: |
and |
Sounds like floats aren't handled right? |
sholderbach
added
🐛 bug
Something isn't working
parser
Issues related to parsing
and removed
needs-triage
An issue that hasn't had any proper look
labels
May 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Formatting fractional durations appears to do some weird intermediate rounding.
How to reproduce
1.07min | format duration ms
returns64000 ms
, despite the correct answer being64200 ms
.1.07 min | format duration sec
return64 sec
, and not the correct64.2 sec
.Expected behavior
Correctly format durations, accounting for the precision of the output unit.
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: