Trunc Function

Applies to TestComplete 15.69, last modified on November 13, 2024

The Trunc function truncates a float number.

Declaration

Trunc(FloatValue) Parameters
FloatValue [in] Required Float
Result     Integer  

Description

Truncates the value specified by FloatValue. This function is similar to Int.

Parameters

The function has the following parameter:

FloatValue

Specifies the value to be truncated.

Return Value

An integer value that holds the truncated number. If FloatValue is empty, Trunc returns 0.

See Also

DelphiScript - List of Supported Routines and Variables
Int
Round

Highlight search results