abs

From ENIGMA

Jump to: navigation, search


Notation

abs(x)

Description

Returns the absolute value of the input. So, abs(-12.5) = 12.5, and abs(12.5) = 12.5.

Parameters

  • x The number whose absolute value is to be returned.

Return Values

Returns the absolute value of x.

Example Call

x = abs(x);
Personal tools