public function setDividedResult($fAbove, $fBelow, $mArguments = null)
    {
        if (($fAbove == 0) || ($fBelow == 0)) { // prevent infinite result AND division by 0
            return 0;
        }
        $numberToFormat = ($fAbove / $fBelow);
        if (is_numeric($mArguments)) {
            $frMinMax = [
                'MinFractionDigits' => $mArguments,
                'MaxFractionDigits' => $mArguments,
            ];
            return $this->setNumberFormat($numberToFormat, $frMinMax);
        }
        return $this->setNumberFormat(round($numberToFormat, $mArguments));
    }
public function setDividedResult($fAbove, $fBelow, $mArguments = null)
    {
        if (($fAbove == 0) || ($fBelow == 0)) { // prevent infinite result AND division by 0
            return 0;
        }
        $numberToFormat = ($fAbove / $fBelow);
        if (is_numeric($mArguments)) {
            $frMinMax = [
                'MinFractionDigits' => $mArguments,
                'MaxFractionDigits' => $mArguments,
            ];
            return $this->setNumberFormat($numberToFormat, $frMinMax);
        }
        return $this->setNumberFormat(round($numberToFormat, $mArguments));
    }
public function setDividedResult ( $ fAbove , $ fBelow , $ mArguments = null ) { if ( ( $ fAbove == 0 ) || ( $ fBelow == 0 ) ) { // prevent infinite result AND division by 0 return 0 ; } $ numberToFormat = ( $ fAbove / $ fBelow ) ; if ( is_numeric ( $ mArguments ) ) { $ frMinMax = [ 'MinFractionDigits' => $ mArguments , 'MaxFractionDigits' => $ mArguments , ] ; return $ this -> setNumberFormat ( $ numberToFormat , $ frMinMax ) ; } return $ this -> setNumberFormat ( round ( $ numberToFormat , $ mArguments ) ) ; }
Returns proper result from a mathematical division in order to avoid
Zero division error or Infinite results

@param float $fAbove
@param float $fBelow
@param mixed $mArguments
@return string
Returns proper result from a mathematical division in order to avoid Zero division error or Infinite results