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
I stumbled upon the 'best_prefix' method when I was looking for something along the lines of #4. Trying to use it, though, I noticed it doesn't work for mass units:
t=Unit.new("2000 kg").best_prefix=>2kkg
and
t=Unit.new("23000 mg").best_prefix=>23000mg
I'm guessing has something to do with kg being SI base unit instead of g?!
The text was updated successfully, but these errors were encountered:
I stumbled upon the 'best_prefix' method when I was looking for something along the lines of #4. Trying to use it, though, I noticed it doesn't work for mass units:
and
I'm guessing has something to do with
kg
being SI base unit instead ofg
?!The text was updated successfully, but these errors were encountered: