tmval.nom_disc_from_nom_disc

tmval.conversions.nom_disc_from_nom_disc(dm: float, m: float, new_m: float) → tmval.conversions.RateTemplate[source]

A nominal/effective interest/discount rate converter. Given a nominal discount rate, along with a desired compounding frequency, returns an nominal discount 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 discount rate, compounded new_m times per year.

Return type

RateTemplate