abs

Syntax

stock abs(x)

Usage

x
Integral value

Description

Returns the absolute value of a number.

Return

Absolute value of x (x if it is greater than 0, -x otherwise)