pv

Function pv 

Source
pub fn pv(
    rate: f64,
    periods: f64,
    payment: f64,
    fv: f64,
    begin: f64,
) -> Result<f64>
Expand description

Computes the present value for a payment stream.

begin must be 0 (end of period) or 1 (begin of period).