Round (Real Integer)

Name

Round (Real-Integer decimals)

Syntax

Round (Real number, Integer decimals)

Purpose

To round a given number to a specified number of decimal places.

Description

Rounds a given number to the specified number of decimal places.

Return Type

Real

Parameters

number [System.Double] – Number for which the rounded value will be returned

decimals [System.Int64]

Example

In this example, we are passing a real value and an integer value (to specify decimal places) to the function transformation object using a Variables object.

Where,

number = -12.3456789

decimals = 3

In the Data Preview window, you can see that a value, rounded to the specified number of decimal places, has been generated.

© Copyright 2023, Astera Software