Previous: System Unit Procedures and Functions To the Table of Content Next: Addr function

- 4.62.2.1 -
Standard Units
System Unit
System Unit Procedures and Functions

Abs function

Targets: MS-DOS, Win32


System Unit

Returns the absolute value of the argument.

Declaration
function Abs(X);
Remarks:
Use Abs to determine the absolute value of an integer or real type argument.

Example:
Var
  x : Integer;
  r : Single;
  i : Int64;
Begin
  x := Abs(-50);             // 50
  r := Abs(-60.34);          // 60.34
  i := Abs(761236655123891); // 761236655123891
End.



Previous: System Unit Procedures and Functions To the Table of Content Next: Addr function
System Unit Procedures and Functions Table of Content Addr function

- 4.62.2.1 -