UTILITY

percent()

ShortPHP reference for percent().

Signature

function percent(float|int $part, float|int $total, int $precision = 1): string

Example

percent(...);

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: partition()

Next: php_at_least()

Back to utilities