MCPcopy Create free account
hub / github.com/Confunctionist/finance / CMP

Function CMP

money.go:259–261  ·  view source on GitHub ↗

CMP Compounded Interest Rate i = (fv / pv) ^ (1/n) - 1 pv = present value fv = future value n - number of periods i = interest rate in percent per period returned as a decimal representation of the interest rate over the period can return NaN (Not a Number) on improbable input values (n = 0 pv = 0)

(fv, pv *Money, n float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

IflFunction · 0.85
GetMethod · 0.80
DivMethod · 0.80

Tested by

no test coverage detected