Trunc Function

Applies to TestComplete 14.72, last modified on December 24, 2020

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