Rounds the number to N decimal places.
| Field | Value |
|---|---|
| Category | Math |
| Type | Scalar (operates value by value) |
| Arity | 1 to 2 arguments |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: ARRED. Accepted aliases (case-insensitive): round.
Syntax#
code
ARRED(expr; [arg2])All arguments are expressions.
Returns#
Number.
Null handling#
Text that is not a number, or a blank value in a calculation, becomes a friendly error (pt-BR) — never a silent zero.
Evaluation context#
Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).
Differences from DAX#
- DAX equivalent: ROUND
- Compatibility: Compatible with DAX
- Note: Rounding to N places, same as ROUND.
Examples#
code
ARRED(preco; 2)Example with values#
Input: 3,14159 with 2 places.
code
ARRED(3,14159; 2) → 3,14Expected result: 3,14
Business example#
Show prices and values with the right number of decimal places in the report.
Common errors#
Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.