Round Function

Applies to TestComplete 15.68, last modified on October 03, 2024

The Round function rounds a number.

Declaration

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

Description

Rounds the specified value to the nearest whole number. If the specified value is in the middle between two numbers (for example, 1.5), the result is an even number.

Parameters

The function has the following parameter:

FloatValue

Specifies the float value to be rounded.

Return Value

An integer value that holds the rounded value of the specified argument. If FloatValue is empty, Round returns 0.

See Also

DelphiScript - List of Supported Routines and Variables
Int
Trunc

Highlight search results