Zum Hauptinhalt springen

Round

Returns the value of X rounded to the nearest whole number.

Structure

Round(number): Int64;

Parameters

Return Value

Description

The Round function rounds a real-type value to an integer-type value.

X is a real-type expression. Round returns an Int64 value that is the value of X rounded to the nearest whole number. If X is exactly halfway between two whole numbers, the result is always the even number.

If the rounded value of X is not within the Int64 range, a run-time error is generated, which can be handled using the EInvalidOp exception. |