Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Trunc()

  • Last UpdatedJul 13, 2023
  • 1 minute read

Truncates a real (floating point) number by simply eliminating the portion to the right of the decimal point, including the decimal point, and returns the result.

Category

Math

Syntax

NumericResult = Trunc( Number );

Parameter

Number

Any number or numeric equipment.item.

Remarks

This function accomplishes the same result as placing the contents of a float type equipment.item into an integer type equipment.item.

Examples

Trunc(4.3); ' returns 4;

Trunc(-4.3); ' returns -4;

See Also

Round()

Math Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in