r-quantities/units

Mistake using modulus operator

KCEvers opened this issue · 3 comments

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

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?

Oh, yes, this was fixed in #365, but not yet on CRAN. It will be part of the next update. Thanks for the report.

Great, thank you for looking into it!