InterestRate
in package
Table of Contents
Methods
- effective() : string|float
- EFFECT.
- nominal() : float|string
- NOMINAL.
Methods
effective()
EFFECT.
public
static effective([mixed $nominalRate = 0 ][, mixed $periodsPerYear = 0 ]) : string|float
Returns the effective interest rate given the nominal rate and the number of compounding payments per year.
Excel Function: EFFECT(nominal_rate,npery)
Parameters
- $nominalRate : mixed = 0
-
Nominal interest rate as a float
- $periodsPerYear : mixed = 0
-
Integer number of compounding payments per year
Return values
string|floatnominal()
NOMINAL.
public
static nominal([mixed $effectiveRate = 0 ][, mixed $periodsPerYear = 0 ]) : float|string
Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
Parameters
- $effectiveRate : mixed = 0
-
Effective interest rate as a float
- $periodsPerYear : mixed = 0
-
Integer number of compounding payments per year
Return values
float|string —Result, or a string containing an error