Title: number_format_i18n
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#wp--skip-link--target)

Filters the number formatted based on the locale.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#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](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/functions.php#L443)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L443-L443)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#related)󠁿

| Used by | Description | 
| [number_format_i18n()](https://developer.wordpress.org/reference/functions/number_format_i18n/)`wp-includes/functions.php` |

Converts float number to format based on the locale.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/number_format_i18n/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | The `$number` and `$decimals` parameters were added. | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fnumber_format_i18n%2F)
before being able to contribute a note or feedback.