On this page
apply_filters( 'number_format_i18n', string $formatted, float $number, int $decimals )
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
File: wp-includes/functions.php. View all references
return apply_filters( 'number_format_i18n', $formatted, $number, $decimals );
Related
Used By
| Used By | Description |
|---|---|
| number_format_i18n() wp-includes/functions.php | Converts float number to format based on the locale. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/number_format_i18n