abs

Returns the absolute value of an expression evaluating to double.

Example

Find the absolute value of the integer -4.

abs(-4)

Syntax

abs(double expr x)
  • x : expression evaluating to double

    Returns

    double

Notes

Function abs returns the absolute (no negative sign) value of a double expression.


© Incorta, Inc. All Rights Reserved.