compound
Calculates compound interest.
Formula: principal × (1 + rate/n)^(n×t)
Arguments
principal- Initial amountrate- Annual interest raten- Compounding frequency per periodt- Number of periods
Fully qualified path: cairo_fp::f64::math::interest::compound
fn compound(principal: Fixed, rate: Fixed, n: Fixed, t: Fixed) -> Fixed