Built-in Functions → abs

abs() is a scalar arithmetic funcion that returns the absolute value (without a negative sign) of a double expression.

Signature

abs(double exp)
  • double exp : an expression evaluating to double

Returns

double

Example

Find the absolute value of the integer -4.

abs(-4)