What it does
Discard decimal digits without rounding.
Syntax
TRUNC(number [, decimal_places])Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.
Arguments, in order
| Argument | Meaning |
|---|---|
number | Value to truncate. |
decimal_places | Optional; defaults to 0. A positive value keeps that many fractional digits. |
Returns: Number.
Worked examples
Example 1
Formula
TRUNC(18.459, 2)Result
18.45Example 2
Formula
TRUNC(-18.459)Result
-18Quotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.
Behaviour and limits
Truncation moves towards zero.
Use it with your fields
Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.

