Expand description

This crate extends how num_rational::Ratio<T> can be converted from a string specifically by allowing decimal notation with the ability to constrain the minimum and maximum number of fractional digits allowed.

Structs

An ordered pair whose first value is <= to the second.
Wrapper around a num_rational::Ratio that deserializes a JSON string representing a rational number in rational or decimal notation to a Ratio<T>.

Enums

The error returned when parsing a string in decimal notation into a num_rational::Ratio<T>.
The error returned when parsing a string in decimal or rational notation into a num_rational::Ratio<T>.

Functions

Returns a String representing val in decimal notation with frac_digit_count fractional digits using normal rounding rules.
Converts a string in decimal notation into a Ratio<T>.
Converts a string in rational or decimal notation into a Ratio<T>.