number_format_i18n WordPress Filter Hook
The number_format_i18n hook is used to format a number with the correct number of decimal places and thousands separators for the current language.
apply_filters( 'number_format_i18n',  string $formatted ,  float $number ,  int $decimals  ) #
Filters the number formatted based on the locale.
Parameters
- $formatted
- (string)Converted number in string format. 
- $number
- (float)The number to convert based on locale. 
- $decimals
- (int)Precision of the number of decimal places. 
Source
Changelog
| Version | Description | 
|---|---|
| 4.9.0 | The $numberand$decimalsparameters were added. | 
| 2.8.0 | Introduced. |