Difference between revisions of "IAbs"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function iAbs(Number: Integer): Integer; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This function det...") |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function | + | function IAbs(Number: Integer): Integer; |
</source> | </source> | ||
Line 13: | Line 13: | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
− | WriteLn( | + | WriteLn(IAbs(1)); |
− | WriteLn( | + | WriteLn(IAbs(-1)); |
end. | end. | ||
</source> | </source> |
Latest revision as of 09:40, 28 June 2011
Definition
function IAbs(Number: Integer): Integer;
Availability
SCAR Divi 3.00 > Current
Description
This function determines the absolute value of the integer value Number which is passed as an argument to the function.
Example
begin WriteLn(IAbs(1)); WriteLn(IAbs(-1)); end.
Output:
1 1