src/Util.php
public static function percentOf($big, $small, $defaultOnZero = 0)
    {
        $result = $big > 0.01 ? (($small*100)/$big) : $defaultOnZero;
        return self::nFloat($result);
    }
public static function percentOf($big, $small, $defaultOnZero = 0)
    {
        $result = $big > 0.01 ? (($small*100)/$big) : $defaultOnZero;
        return self::nFloat($result);
    }
public static function percentOf ( $ big , $ small , $ defaultOnZero = 0 ) { $ result = $ big > 0.01 ? ( ( $ small * 100 ) / $ big ) : $ defaultOnZero ; return self :: nFloat ( $ result ) ; }
Return percent x of y;

@param $big
@param $small
@param int   $defaultOnZero

@return string
Return percent x of y ;