TRUNCATE
- Last UpdatedMar 03, 2025
- 1 minute read
The TRUNCATE() function produces a stream of results removing the fractional portion of a stream's values.
Syntax
|
Format |
Stream = TRUNCATE( Stream ) |
|
Arguments |
Stream - A stream of values |
|
Description |
Returns a stream that is a copy of the input stream, with the fractional part of all values removed. |
Example 1
The following expression returns the sum of power consumption, with the fractional removed.
TRUNCATE(PLPReactor.PLPWIN2019.VectorTags.VectorX +PLPReactor.PLPWIN2019.VectorTags.VectorY +PLPReactor.PLPWIN2019.VectorTags.VectorZ )
