System.Abs

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Abs(X: <Real Int64 or Integer>): Real; overload;
function Abs(X: <Real Int64 or Integer>): Int64; overload;
function Abs(X: <Real Int64 or Integer>): Integer; overload;

Properties

Type Visibility Source Unit Parent
function public System.pas System System

Description

Returns an absolute value.

Abs returns the absolute value of the argument, X.

X is an integer-type or real-type expression.

See Also


Code Examples