Trait oracle::TruncateFixedPointToInt
source · pub trait TruncateFixedPointToInt: FixedPointNumber {
// Required method
fn truncate_to_inner(&self) -> Option<Self::Inner>;
}
Required Methods§
sourcefn truncate_to_inner(&self) -> Option<Self::Inner>
fn truncate_to_inner(&self) -> Option<Self::Inner>
take a fixed point number and turns it into the truncated inner representation, e.g. FixedU128(1.23) -> 1u128