SI señor
SI señor is a simple SI prefix converter.
Assume that you always have basic SI unit for conversion (seconds for time, meters for length and so on).
Important
All operations are done on BigDecimal (numbers are automatically converted).
For pretty format you should use to_i
or to_f
methods, for example: 1.pico.to_mega.to_f
.
Sample usage
1.milli
1.kilo.to_mega
1.to_centi
Wiki for SI & SI prefixes
http://en.wikipedia.org/wiki/SI
http://en.wikipedia.org/wiki/SI_prefix