Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

present_value

Calculates the present value of a future amount.

Formula: FV / (1 + rate)^periods

Arguments

  • future_value - The future amount
  • rate - Discount rate per period
  • periods - Number of periods

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

fn present_value(future_value: Fixed, rate: Fixed, periods: Fixed) -> Fixed