abs

Returns the absolute (non-negative) value of a number.

Function

result = abs(input)

Arguments

ArgumentData Type
inputnumeric
resultnumeric

Comments

Absolute value function that converts negative numbers to positive.

Examples

result = abs(-35) /* result = 35 */