Round

Function

This statement rounds the input value to the next integer value. Round uses the mathematically rounding rules: If the decimal part of the input value X is less than 0.5, then it is rounded down. If the decimal part is greater than or equal to 0.5, then it is rounded up to the next integer.


Fig. 58.   Wire-sheet Icon

Fig. 59.   Property Sheet

Fig. 60.   Slot Sheet


Inputs and Outputs

Table 41.   Inputs

Inputs

Type

Functional description

In

numeric

Analog input value

In Enabled

boolean

If the input “In Enabled” is set to false disabled in the slot sheet, the output “Out” will be disabled and is set to the value “0”.


Table 42.   Outputs

Outputs

Type

Functional description

Out

numeric

One analog output “Out” = rounded value.


Parameter List

No parameters.