raymon1 / financial

Financial is a Rust crate that contains collection of finance calculations memicking some of Excel Financial Functions interface.
https://docs.rs/crate/financial
14 stars 5 forks source link

fv function used in pv example block #10

Open dimitrilw opened 11 months ago

dimitrilw commented 11 months ago

ref (url to commit at time of issue post)

dimitrilw commented 11 months ago

Potential replacement test:

let pv = financial::pv(0.2, 48.0, Some(100.0), Some(1000.0), Some(false));
assert_eq!(pv, -500.0791170697643);