Crate num_rational
source ยทExpand description
Modulesยง
- iter_
sum_ ๐product - opassign ๐
- pow ๐
Macrosยง
- arith_
impl ๐ - checked_
arith_ ๐impl - forward_
all_ ๐binop - impl_
formatting ๐ - to_
primitive_ ๐64 - to_
primitive_ ๐small
Structsยง
- Represents the ratio between two numbers.
Enumsยง
- Ratio
Error ๐Kind
Traitsยง
- Bits ๐
Functionsยง
- approximate_
float ๐ - ldexp ๐Multiply
x
by 2 to the power ofexp
. Returns an accurate result even if2^exp
is not representable. - ratio_
to_ ๐f64 Converts a ratio ofT
to an f64.
Type Aliasesยง
- Rational
Deprecated Alias for aRatio
of machine-sized integers. - Alias for a
Ratio
of 32-bit-sized integers. - Alias for a
Ratio
of 64-bit-sized integers.