Function div_to_factor_signed

Source
pub fn div_to_factor_signed<T, const DECIMALS: u8>(
    value: &T::Signed,
    divisor: &T,
) -> Option<T::Signed>
where T: FixedPointOps<DECIMALS>,
Expand description

Convert the value to a factor after dividing by the divisor.

ยงNotes

  • Return zero if the divisor is zero.