format_number_european
Formats a number using the locale conventions of a specific European country, applying the correct decimal separator and thousands separator. Returns { original: number, formatted: string, locale: string, country_code: string }. Different European countries use different conventions — Portugal and most of continental Europe use '1.234,56' (dot as thousands, comma as decimal), while Ireland uses '1,234.56'. Supports PT, ES, FR, DE, IT, NL, BE, PL, SE, DK, FI, AT, IE, GR, HU, RO. Use when displaying prices, measurements, or any numeric value to end users in a specific European country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The numeric value to format. Example: 1234.56 | |
| decimals | No | Number of decimal places. Defaults to 2. Use 0 for whole numbers, 2 for prices. | |
| country_code | Yes | Two-letter country code for the target locale. Example: 'PT', 'FR', 'DE' |