Format a number for a locale
format_numberLocale-correct display of a decimal, currency amount or percentage using CLDR rules: grouping (1,234,567 / 12,34,567 / 1.234.567 / 1 234 567), decimal mark, currency symbol placement, Arabic-Indic digits for ar_* locales. Example: number 1234567.891, locale 'en_IN', style 'currency', currency 'INR'. Response: result plus data_confidence, estimated_items[], sources[], data_version, warnings[]; deterministic (no AI inside), nothing logged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | decimal | |
| locale | Yes | CLDR locale: 'en', 'en_IN' (lakh grouping), 'ar_AE' (Arabic-Indic digits), 'de_DE', 'fr_CH'… | |
| number | Yes | Number to format. | |
| currency | No | ISO 4217 code when style=currency. | |
| decimals | No | Force a number of decimal places; default = locale/currency rule. | |
| numbering | No | Digit system: locale default (ar_EG → Arabic-Indic, ar_AE → Western), or force latn / arab. | locale |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||