Type Definition interbtc_primitives::SignedFixedPoint
source · pub type SignedFixedPoint = FixedI128;
Expand description
The signed fixed point type.
Trait Implementations§
source§impl TruncateFixedPointToInt for SignedFixedPoint
impl TruncateFixedPointToInt for SignedFixedPoint
source§fn 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