Round

From SCAR Divi Manual
Jump to: navigation, search

Definition

function Round(X: Extended): Integer;

Availability

SCAR Divi 3.00 > Current

Description

This function rounds a value given by X.

Example

begin
  WriteLn(Round(1.1));   
  WriteLn(Round(1.5));
  WriteLn(Round(1.9));
end.

Output:

1
2
2

See Also