--- title: "format number()" slug: "string-format-number" updated: 2026-08-17T07:41:16Z published: 2026-08-17T07:41:16Z canonical: "docs.lobstersoftware.com/string-format-number" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # format number() This function converts a numeric value **a** into **a** string using the format template **b** and the optional locale **c**. ## Parameters | Parameter | Description | | --- | --- | | a | Numerical value. | | b | Format template (Java text format). | | c | (optional) Locale. Default: en_US. Note: Use the three dots to select a value. | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | 1 | #.000 | | 1.000 | | 1 | #.000 | en_US | 1.000 | | 1 | #.000 | de_DE | 1.000 | | 1234 | #,###.00 | | 1234.00 | | 1234 | #,###.00 | de_DE | 1234,00 |