Project

si_senior

0.0
No commit activity in last 3 years
No release in over 3 years
SI unit converter. Supports prefixes (1.kilo, 5.mega etc) and conversions (1.to_mega, 5.milli.to_centi etc)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.14
 Project Readme

SI señor

Build Status Code Climate Gem Version

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