Round Function

Applies to TestComplete 15.45, last modified on December 01, 2022

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