- 4.67.2.73. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.73. Round function
4.67.2.73. Round function
Targets: MS-DOS, OS/2, Win32
System Unit
Rounds an Extended-type value to 32bit Integer-type value.
Declaration:
function Round(X: Extended): Longint;
Remarks:
Round returns X, rounded to the nearest whole number,
as a Longint.
Example:
i := Round(-456.332); // -456
i := Round(1231.98192); // 1232
See also:
Round64
Trunc
Trunc64
- 4.67.2.73. -