rational_extensions 0.1.0

Extensions for rational numbers.
Documentation

rational_extensions

rational_extensions is a library that extends num_rational::Ratio<T> such that strings in decimal notation can be converted into such an instance. One can furthermore control the minimum and maximum number of fractional digits allowed. It also allows one to convert a Ratio<T> into a decimal String controlling how many fractional digits should be used.