Round('Expression')

Description

This function rounds ‘Expression’ up or down to the nearest whole number (integer).

Example

Rounding values of a signal waveform to whole numbers

Task description

From a real signal waveform, the measured value should be rounded to the nearest integer value for each sample.

Solution

In the figure below the blue curve shows the original signal and the red curve shows the signal trend with rounded values.