7b055c81167c48c7ca553ce7cd1af7bf0b88d29a
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.
Description
My contributions to wroberts/pytimeparse: 3 commits, 1 merged PRs
44 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
100%