From Stealth Client

Jump to: navigation, search
(Undo revision 8112 by Alex (talk))
m
Line 1: Line 1:
 +
<noinclude></noinclude>
<noinclude></noinclude>
<noinclude>
<noinclude>
Line 4: Line 5:
</noinclude>
</noinclude>
== Abs ==
== Abs ==
-
<source lang="pascal">function Abs(X : Integer): Cardinal</source>
+
<source lang="pascal">function Abs(X:Integer):Cardinal</source>
-
Возвращает м111одуль числа ''X''.
+
Returns the number of'' X''.
-
'''Пример 1:'''
+
'''Example 1:'''
<source lang="pascal">
<source lang="pascal">
AddToSystemJournal(IntToStr(Abs(-10)));
AddToSystemJournal(IntToStr(Abs(-10)));
Line 15: Line 16:
</source>
</source>
-
Результат выполнения:
+
The result of:
<source lang="text">
<source lang="text">
10
10

Revision as of 21:39, 15 February 2012


Abs

function Abs(X:Integer):Cardinal

Returns the number of X.

Example 1:

AddToSystemJournal(IntToStr(Abs(-10)));
AddToSystemJournal(IntToStr(Abs(10)));
AddToSystemJournal(IntToStr(Abs(0)));

The result of:

10
10
0