dualfroz 7b055c8116 fix: round decimal unit values instead of truncating in integer path
Multiplying a decimal quantity by its unit multiplier in binary floating
point can land just below the exact integer (float('2.05') * 60 ==
122.999...), so int() truncated 2.05m to 122 seconds instead of 123.
Round the sub-second unit contribution before adding whole seconds.
2026-09-04 09:22:40 +02:00
S
Description
My contributions to wroberts/pytimeparse: 3 commits, 1 merged PRs
44 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%