tmval.nom_int_from_nom_disc¶
-
tmval.conversions.
nom_int_from_nom_disc
(dm: float, m: float, new_m: float = None) → tmval.conversions.RateTemplate[source]¶ A nominal/effective interest/discount rate converter. Given a nominal discount rate, along with a desired compounding frequency, returns a nominal interest rate at the desired compounding frequency.
- Parameters
dm (float) – the nominal discount 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