Difference between revisions of "Round"
From SCAR Divi Manual
(Created page with "==Definition== <func>function Round(X: Extended): Integer;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function rounds a value given by '''X'''. ==Ex...") |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
− | < | + | <source lang="scar" lines="false"> |
+ | function Round(X: Extended): Integer; | ||
+ | </source> | ||
==Availability== | ==Availability== |
Latest revision as of 18:50, 26 June 2011
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