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

Edge HMI

Trunc

  • Last UpdatedAug 07, 2026
  • 1 minute read

Truncate returns the truncated value of a real number value.

Group

Sync / Async Exec

String Exp?

Windows Support

Windows Embedded Support

IoT View Support

Thin Client Support

Mobile Access Support

Arithmetic

Sync

Yes

Yes

Yes

Yes

Yes

Yes

Syntax

Trunc(numValue)

numValue

The numeric value argument on which the function operation will be performed.

Returned value

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

Examples

As used in a Math worksheet:

Tag Name

Expression

Tag

Trunc( 234.987 ) // Returned value = 234

Tag

Trunc( -3465.9 ) // Returned value = -3465

In This Topic