Skip to main content
CloudStudio

Round

The Round function rounds a number to the specified number of decimal places.

Definition

Round(valor, [decimales])

Parameters

NameDescriptionData type
valorValue to be roundednumeric
decimalesOptional parameter indicating how many decimal places to use for rounding. If not specified, rounding is done without decimals.numeric

Examples

Rounding without decimals

In this example, we will round a given value, removing all decimals:

Round(25.65)

The result is 26 (numeric).

Rounding to one decimal place

In this example, we will round a given value, leaving one decimal place:

Round(25.66, 1)

The result is 25.7 (numeric).

More information

More information about number rounding can be found on Wikipedia.

Last updated on

On this page