Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

decay

Calculates exponential decay: initial × (1 - rate)^periods

Requires rate < 1 for meaningful results.

Fully qualified path: cairo_fp::f128::math::interest::decay

fn decay(initial: Fixed, rate: Fixed, periods: Fixed) -> Fixed