24 public static function effective($nominalRate = 0, $periodsPerYear = 0)
33 return $e->getMessage();
36 if ($nominalRate <= 0 || $periodsPerYear < 1) {
40 return ((1 + $nominalRate / $periodsPerYear) ** $periodsPerYear) - 1;
53 public static function nominal($effectiveRate = 0, $periodsPerYear = 0)
62 return $e->getMessage();
65 if ($effectiveRate <= 0 || $periodsPerYear < 1) {
70 return $periodsPerYear * (($effectiveRate + 1) ** (1 / $periodsPerYear) - 1);
static nominal($effectiveRate=0, $periodsPerYear=0)
NOMINAL.
static effective($nominalRate=0, $periodsPerYear=0)
EFFECT.
static validateFloat($value)
static validateInt($value)
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.