Round (Real)
Name | Round (Real) |
Syntax | Round (Real number) |
Purpose | To round a given number |
Description | Rounds a real number to the nearest integer value. |
Return Type | Integer |
Parameters | number [System.Double] – Number for which the rounded value will be returned |
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F0%2520%2848%29.png&width=768&dpr=4&quality=100&sign=52d352a&sv=1)
Example
In this example, we are passing a real value to the function transformation object using a Variables object.
Where,
number = -12.3456
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F1%2520%2849%29.png&width=768&dpr=4&quality=100&sign=62b69b3e&sv=1)
In the Data Preview window, you can see that the specified real value has been rounded to its nearest integer value i.e., -12.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2Fgithub.com%2Fastera-software%2FAstera_Data_Stack_v9%2Fblob%2Fmain%2F.gitbook%2Fassets%2F2%2520%2849%29.png&width=768&dpr=4&quality=100&sign=b9e146e3&sv=1)