Rubygem nreadable
Extends the Numeric Class with the ability to create better readable representations of numeric values as a String.
Features
- thousands separated numbers ( e.g. 1,000,000 )
- exponential notation with self-adjusting precision ( e.g. 1e+06 )
- SI-Prefixes ( e.g. 1000000 = 1M )
- Binary Prefixes ( e.g. 1048576 = 1Mi )
- large-number naming system ( e.g. 1 million )
License
The MIT license. See LICENSE file.