Aller au contenu principal

Trunc

Truncates a real number to an integer.

Structure

Trunc(number): Int64;

Parameters

Return Value

Description

The Trunc function truncates a real-type value to an integer-type value. X is a real-type expression. Trunc returns an Int64 value that is the value of X rounded toward zero.

If the truncated value of X is not within the Int64 range, an EInvalidOp exception is raised. |