public static function percentOf($big, $small, $defaultOnZero = 0) { $result = $big > 0.01 ? $small * 100 / $big : $defaultOnZero; return self::nFloat($result); }