TRUNC Function

TRUNC (a)

Rounds a to an integer towards zero and returns a DINT data type.

Parameters

a(REAL)

The input value.

Return Value

Returns a DINT.

Examples

TRUNC(34.78) returns 34

TRUNC(-3.46) returns -3

TRUNC(-3.99) returns -3

 

See Also

TRUNC_REAL Function | REAL_TO_DINT Function | ROUND Function | Standard Functions


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion