Polybench® for biosignals / reference 1.34.1
Rounds the input sample values to the specified precision.

Round

Overview

Use this operator to convert floating point input sample values from all channels to rounded values with a specified precision. The rounding operator uses midpoint rounding towards infinity, so 2.4 becomes 2 and 2.5 becomes 3 (if the Digits property is set to 0).

Operator ports

Input S: Floating point values

Output S_int: Floating point values

Properties

Find more information about changing properties here: "Properties Viewer"

Digits
type: Integer value
The number of digits to which the input values are rounded. Must be greater or equal than 0 and less than 16.

Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

Documentation
type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.

Details


Examples

Example: Round and Truncate Demo
Demonstrates the Round and Truncate operators and shows the difference between the two.
Examples\DF0409118_001_Round_Demo.xmc