Rounding the variable to an integer value

In order to round the value of a variable of the number type to an integer value, create a script using the following methods:

* math.floor - returns an integer value not greater than the given one:

CLU->variable1=math.floor(CLU->variable)


* math.ceil - returns an integer value not less than the given one:

CLU->variable2=math.ceil(CLU->variable)


Where:
variable - variable value that we want to round;
variable1, variable2 - rounded values of the variable.

All the variables (variable, variable1, variable2) have been previously created in user features on CLU.



After the configuration has been successfully sent and script has been called, the values of variables should be presented as following: