Nio (Numeric input/output) is a Ruby package for text-formatted input/output and conversion of scalar numeric types.
This library formats numbers as text numerals and reads them back into numeric objects. The numeric types Integer Rational, BigDecimal and Float are supported.
Conversion between the numerical types is also provided.