---
title: "Format.number ViewHelper <f:format.number>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-format-number@main"
source: "Global/Format/Number.rst"
rendered: "2026-09-25T05:46:13+00:00"
---

# Format.number ViewHelper `<f:format.number>` {#typo3fluid-fluid-format-number}

Formats a number with custom precision, decimal point and grouped thousands.
See [https://www.php.net/manual/function.number-format.php](https://www.php.net/manual/function.number-format.php).

Go to the source code of this ViewHelper: [Format\\NumberViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/Format/NumberViewHelper.php).

## Arguments of the `<f:format.number>` ViewHelper {#typo3fluid-fluid-format-number-arguments}

-   **decimalSeparator**

    -   *Type:* string
    -   *Default:* '.'

    The decimal point character

-   **decimals**

    -   *Type:* int
    -   *Default:* 2

    The number of digits after the decimal point

-   **thousandsSeparator**

    -   *Type:* string
    -   *Default:* ','

    The character for grouping the thousand digits
