tmval.nom_int_from_nom_int¶
-
tmval.conversions.
nom_int_from_nom_int
(im: float, m: float, new_m: float) → tmval.conversions.RateTemplate[source]¶ A nominal/effective interest/discount rate converter. Given a nominal interest rate, along with a desired compounding frequency, returns a nominal interest rate at the desired compounding frequency.
- Parameters
im (float) – the nominal interest rate.
m (float) – the compounding frequency
new_m (float) – the desired compounding frequency.
- Returns
a nominal interest rate, compounded new_m times per year.
- Return type
RateTemplate