apply_filters( ‘number_format_i18n’, string $formatted, float $number, int $decimals )

In this article

Filters the number formatted based on the locale.

Parameters

$formattedstring
Converted number in string format.
$numberfloat
The number to convert based on locale.
$decimalsint
Precision of the number of decimal places.

Source

return apply_filters( 'number_format_i18n', $formatted, $number, $decimals );

Changelog

VersionDescription
4.9.0The $number and $decimals parameters were added.
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.