Floor

From SCAR Divi Manual
Revision as of 11:31, 26 June 2011 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

function Floor(X: Extended): Integer;

Availability

SCAR Divi 3.00 > Current

Description

This function rounds a value given by X down.

Example

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

Output:

1
1
1

See Also