Trait cosmwasm_std::Fraction [−][src]
pub trait Fraction<T>: Sized { fn numerator(&self) -> T; fn denominator(&self) -> T; fn inv(&self) -> Option<Self>; }
Expand description
A fraction p
/q
with integers p
and q
.
p
is called the numerator and q
is called the denominator.
Required methods
fn denominator(&self) -> T
[src]
fn denominator(&self) -> T
[src]Returns the denominator q