format_number_european
Formats numeric values according to European country locale conventions, transforming decimal and thousands separators for accurate regional display.
Instructions
Formats a number using the locale conventions of a specific European country — correct decimal and thousands separators. Returns { original, formatted, locale, country_code }. Supports PT, ES, FR, DE, IT, NL, BE, PL, SE, DK, FI, AT, IE, GR, HU, RO, UK.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The numeric value to format. Example: 1234.56 | |
| country_code | Yes | Two-letter country code. Example: 'PT', 'FR', 'DE' | |
| decimals | No | Number of decimal places. Defaults to 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | ||
| formatted | Yes | ||
| locale | Yes | ||
| country_code | Yes |