Format Number
format_numberFormat a number with grouping, fixed decimals, as a percentage, or in compact notation (keyless, offline). style = "decimal" (default), "percent", or "compact".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | decimal (default) | percent | compact. | |
| locale | No | BCP-47 locale (default "en-US"). | |
| number | Yes | The number to format. | |
| decimals | No | Fixed number of fraction digits. |