Trunc

Truncates the value of numValue.

Function Group Execution Windows Embedded Thin Client Mobile Access
Trunc Arithmetic Synchronous Supported Supported Supported Supported

Syntax

  Trunc( numValue )  
numValue
Real tag to be truncated.

Returned value

Returns the integer portion of the real number value of numValue.

Examples

Tag Name Expression
  Trunc( 234.987 ) // Returned value = 234
  Trunc( -3465.9 ) // Returned value = -3465

Trunc