[][src]Function finance_solution::epr

pub fn epr(epr: f64, compounding_periods_in_year: u32) -> ConvertRateSolution

Helper function to convert a periodic interest rate (EPR) to all rate conversions. Returns solution struct.

Note: an EPR of 0.99 with a large number of periods can create decimal inaccuracies due to floating point representation. The epr conversion method is tested and guaranteed accurate up to 780 periods between rates -0.034 and 0.989 however any rates outside this range may result in floating point representation / rounding errors (extremely small differences like 0.00001, but if the period count is an extreme case like 2000, this can result in a difference of $1-$4 on a TVM problem).