Difference between revisions of "Floor"
From SCAR Divi Manual
(Created page with "==Definition== <func>function Floor(X: Extended): Integer;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function rounds a value given by '''X''' down. ...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
| − | < | + | <source lang="scar" lines="false"> |
| + | function Floor(const X: Extended): Integer; | ||
| + | </source> | ||
==Availability== | ==Availability== | ||
| Line 11: | Line 13: | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
| − | WriteLn( | + | WriteLn(Floor(1.1)); |
| − | WriteLn( | + | WriteLn(Floor(1.5)); |
| − | WriteLn( | + | WriteLn(Floor(1.9)); |
end. | end. | ||
</source> | </source> | ||
Latest revision as of 19:56, 30 August 2011
Definition
function Floor(const 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