Documentation

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|float

nominal()

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


        
On this page

Search results