Skip to main content

Overview

The round transformation rounds a number to a specified number of decimal places using a given rounding mode.

Syntax

round(<variable>, mode="round", decimal=0)

Parameters

ParameterTypeRequiredDescription
variablenumberYesThe number to round
modestringYesRounding mode: "round", "up" (ceil), or "down" (floor)
decimalnumberYesNumber of decimal places

Examples

round(<variable>, mode="round", decimal=2)
round(<variable>, mode="up", decimal=0)
round(<variable>, mode="down", decimal=1)