Mistake using modulus operator
KCEvers opened this issue · 3 comments
KCEvers commented
Hi all,
There seems to be a mistake when using the modulus operator:
units::set_units(12.25, "hour") %% 24
-11.75 [h]
Could this be fixed? Thanks!
Best, Kyra
Enchufa2 commented
Sorry, I cannot reproduce this. I see:
units::set_units(12.25, "hour") %% 24
#> 12.25 [h]
Are you running an up-to-date version of the package?
Enchufa2 commented
Oh, yes, this was fixed in #365, but not yet on CRAN. It will be part of the next update. Thanks for the report.
KCEvers commented
Great, thank you for looking into it!