ROUNDP

ROUNDP rounds a given number at a specified decimal precision.

This function is valid in both rules and TurboIntegrator processes.

Syntax

ROUNDP(number, decimal)

Argument

Description

number

The number you want to round.

decimal

The decimal precision at which to apply the rounding. If this argument is positive, the function rounds the specified number of digits to the right of the decimal point. If this argument is negative, the function rounds the specified number of digits to the left of the decimal point.

The decimal argument must be between -15 and 15, inclusive.

Example

ROUNDP(1.46, 1) returns 1.5.

ROUNDP(1.466, 2) returns 1.47.

ROUNDP(234.56, -1) returns 230.00.

ROUNDP(234.56, 0) returns 235.00.