Expand description

Traits for converting to and from Rationals, converting to and from strings, and extracting digits and continued fractions.

Modules

Implementations of traits for converting Rationals to and from continued fractions.

Implementations of traits for working with the digits of Rationals.

Functions for converting a primitive float to a Rational, choosing the Rational with minimal denominator that rounds to the given float.

Implementations of the From trait for converting an Integer to a Rational.

Implementations of the From trait for converting a Integer to a Rational.

Functions for constructing a Rational from a numerator and denominator, or from a sign, numerator, and denominator.

Implementations of the From trait for converting a primitive float to a Rational.

Implementations of the From trait for converting a primitive integer to a Rational.

Implementations of traits for converting a Rational to an Integer.

An implementation of IsInteger, a trait for determining whether a number is an integer.

An implementation of SciMantissaAndExponent, a trait for converting numbers to and from a mantissa-and-exponent representation.

Functions for mutating a Rational’s numerator and/or denominator in place.

Implementations of traits for converting a Rational to a Natural.

Functions and implementations of traits for converting a Rational to a primitive float.

Implementations of traits for converting a Rational to a primitive integer.

Implementations of traits for converting Rationals to and from Strings.

Functions for extracting or referencing the numerator and/or denominator of a Rational.

Various traits for performing arithmetic operations on numbers.