pub trait TruncateFixedPointToInt: FixedPointNumber {
    // Required method
    fn truncate_to_inner(&self) -> Option<<Self as FixedPointNumber>::Inner>;
}

Required Methods§

source

fn truncate_to_inner(&self) -> Option<<Self as FixedPointNumber>::Inner>

take a fixed point number and turns it into the truncated inner representation, e.g. FixedU128(1.23) -> 1u128

Implementors§