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
Ever since #44, the old behavior of selecting a nice unit to display the quantity in was disabled since there were just too many units to make sense of the result. (10m would be printed as 1 dam).
There are many solutions to this, but I think a nice one should prevent certain prefixes from ever being printed in (deca, hecto) - if one really wants to go overboard this could be unit specific (hPa is used) and we could add an attribute #[debug_print] over a unit to declare a preferred unit for printing in (#41 ).
The main difficulty in implementing any of this (this applies to #33 ) is that storing the unit information at runtime is very awkward currently. What I'd like to do is define a proper container for the runtime information we have about units that can quickly answer questions such as "what are all the units for a given dimension".
The text was updated successfully, but these errors were encountered:
Ever since #44, the old behavior of selecting a nice unit to display the quantity in was disabled since there were just too many units to make sense of the result. (
10m
would be printed as1 dam
).There are many solutions to this, but I think a nice one should prevent certain prefixes from ever being printed in (
deca
,hecto
) - if one really wants to go overboard this could be unit specific (hPa
is used) and we could add an attribute#[debug_print]
over a unit to declare a preferred unit for printing in (#41 ).The main difficulty in implementing any of this (this applies to #33 ) is that storing the unit information at runtime is very awkward currently. What I'd like to do is define a proper container for the runtime information we have about units that can quickly answer questions such as "what are all the units for a given dimension".
The text was updated successfully, but these errors were encountered: