Previous: 4.67.2. System Unit Procedures and Functions To the Table of Contents Next: 4.67.2.2. Addr function
4.67.2. System Unit Procedures and Functions Table of Contents 4.67.2.2. Addr function

- 4.67.2.1. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.1. Abs function


4.67.2.1. 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: 4.67.2. System Unit Procedures and Functions To the Table of Contents Next: 4.67.2.2. Addr function
4.67.2. System Unit Procedures and Functions Table of Contents 4.67.2.2. Addr function

- 4.67.2.1. -