Rounding
Purpose
Round floating point signal to integer values
Library
Control / Math
Description
This component rounds the value of a floating point signal on its input to an
integer value. The rounding algorithm can be selected in the component
parameter:
-
floor
- The output is the largest integer not greater than the input, for example
and
.
-
ceil
- The output is the smallest integer not less than the input, for example
and
.
-
round
- The output is the integer nearest to the input, for example
,
and
.
-
fixed
- The output is the integer value of the input with all decimal places
truncated, for example
and
.
Parameter
-
Operation
- The rounding algorithm as described above.
Probe Signals
-
Input
- The block input signal.
-
Output
- The block output signal.