borisguery / Inflexible

Other
19 stars 3 forks source link

Add an inflector to transform a number into a shortened form with international units #3

Closed borisguery closed 11 years ago

borisguery commented 11 years ago

Example:

1000    => 1k
1000000 => 1M

See http://en.wikipedia.org/wiki/Metric_prefix