Truncate('Expression')
Description
The truncate function truncates the decimal places of a floating point value. Negative numbers are thus rounded up to the nearest integer value, positive numbers rounded down.
Example
Truncating the decimal places of the values of a signal waveform
Task description
From a real signal waveform, the measured value should be displayed without decimal places for each sample.
Solution
In the figure below the blue curve shows the original signal and the red curve shows the signal trend with truncated decimal places.
