You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using round/floor/ceil/… on dimensionful quantities is sometimes useful, but it's also dangerous, because the output depends on the unit in use. au, a C++ compile-time unit library, solves this problem by providing round_in<unit>(value) instead. We could potentially do something similar. round_in(unit, value) would work, but is prone to argument reversal errors.
The text was updated successfully, but these errors were encountered:
Using round/floor/ceil/… on dimensionful quantities is sometimes useful, but it's also dangerous, because the output depends on the unit in use.
au
, a C++ compile-time unit library, solves this problem by providinground_in<unit>(value)
instead. We could potentially do something similar.round_in(unit, value)
would work, but is prone to argument reversal errors.The text was updated successfully, but these errors were encountered: