currency-format
Format numbers as locale-aware currency strings and retrieve currency symbols, separators, and names for any ISO 4217 currency. Supports 150+ currencies for financial reports, invoices, and cross-regional price display.
Instructions
Locale-aware currency formatting and symbol lookup for any ISO 4217 currency. Formats numbers as currency strings (e.g. 1234.56 USD → '$1,234.56', EUR in German locale → '1.234,56 €'), returns currency symbol, decimal separator, grouping separator, and currency name. Pure computation — no API key, no upstream latency. Supports 150+ currencies and custom locale overrides. Use for: financial report generation, invoice display, DeFi amount formatting, cross-regional price display.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Numeric amount to format (e.g. 1234.56). | |
| currency | No | ISO 4217 currency code (e.g. 'USD', 'EUR', 'JPY', 'KRW', 'BTC is not supported — ISO only). | |
| locale | No | BCP 47 locale tag (e.g. 'en-US', 'de-DE', 'ja-JP'). Defaults to the canonical locale for the currency. | |
| mode | No | 'format' returns the formatted string only. 'info' returns symbol and separators only. 'both' returns everything. Default: 'both'. |