From Stealth Client

Jump to: navigation, search


Abs

function Abs(X:Integer):Cardinal

Returns the absolute value of X.

Example 1:

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

The result of:

10
10
0