Text.php
public static function percentageFormat($value, bool $withSymbol = true, int $precision = 0): string
    {
        $percentValue = round((float) $value, $precision);
        return $percentValue . ($withSymbol ? ' %' : '');
    }
public static function percentageFormat($value, bool $withSymbol = true, int $precision = 0): string
    {
        $percentValue = round((float) $value, $precision);
        return $percentValue . ($withSymbol ? ' %' : '');
    }
public static function percentageFormat ( $ value , bool $ withSymbol = true , int $ precision = 0 ) : string { $ percentValue = round ( ( float ) $ value , $ precision ) ; return $ percentValue . ( $ withSymbol ? ' %' : '' ) ; }
Round and add the % symbol
@param mixed $value
@param bool $withSymbol
@param int $precision
@return string
Round and add the % symbol