Search Results
Parameters ¶ formatter NumberFormatter object. amount The numeric currency value. currency The 3-letter ISO 4217 currency code indicating the currency to use.
- setAttribute
Example #3 Using NumberFormatter::ROUNDING_MODE to truncate...
- setTextAttribute
Parameters ¶ formatter NumberFormatter object. attribute...
- Create
Parameters ¶ locale Locale in which the number would be...
- getLocale
Parameters ¶ formatter NumberFormatter object. type You can...
- Parse
Parse a number
- setSymbol
Parameters ¶ formatter NumberFormatter object. symbol Symbol...
- getSymbol
Get a symbol associated with the formatter. The formatter...
- getPattern
Description ¶ Object-oriented style public...
- setAttribute
The 3-letter ISO 4217 currency code indicating the currency to use.
Parameters fmt NumberFormatter object. value The numeric currency value. currency The 3-letter ISO 4217 currency code indicating the currency to use.
numfmt_format_currency (No version information available, might be only in CVS) NumberFormatter::formatCurrency -- numfmt_format_currency — Format a currency value
Apr 22, 2026 · By invoking the methods provided by the NumberFormatter class, you can format numbers, currencies, and percentages according to the specified or default locale. NumberFormatter is locale-sensitive so you need to create a new NumberFormatter for each locale. NumberFormatter methods format primitive-type numbers, such as double and output the number as a locale-specific string.
Jul 18, 2023 · NumberFormatter's formatCurrency () output differs between currencies Asked 2 years, 9 months ago Modified 2 years, 9 months ago Viewed 87 times
People also ask
How do I format a currency value?
How do I format a number based on a specific locale?
What is currency format in PHP?
How to set a pattern for currency symbol & number?
The 3-letter ISO 4217 currency code indicating the currency to use.
