Function apply_factors

Source
pub fn apply_factors<T, const DECIMALS: u8>(
    value: T,
    factor: T,
    exponent_factor: T,
) -> Result<T>
where T: FixedPointOps<DECIMALS>,
Expand description

Apply factors using this formula: A * x^E.

Assuming that all values are “float“s with the same decimals.