public static function calculate_percentage($numerator, $denominator, $decimals = 2, $dec_point = '.', $thousands_sep = ',')
    {
        return number_format(($numerator / $denominator) * 100, $decimals, $dec_point, $thousands_sep);
    }
public static function calculate_percentage($numerator, $denominator, $decimals = 2, $dec_point = '.', $thousands_sep = ',')
    {
        return number_format(($numerator / $denominator) * 100, $decimals, $dec_point, $thousands_sep);
    }
public static function calculate_percentage ( $ numerator , $ denominator , $ decimals = 2 , $ dec_point = '.' , $ thousands_sep = ',' ) { return number_format ( ( $ numerator / $ denominator ) * 100 , $ decimals , $ dec_point , $ thousands_sep ) ; }
Calculates percentage of numerator and denominator.

@param int|float $numerator
@param int|float $denominator
@param int $decimals
@param string $dec_point
@param string $thousands_sep
@return int|float
Calculates percentage of numerator and denominator .