Abs()

Calculate the absolute values.

ABS(x) x=Generic Calculate |x|.

example:

	# Print the absolute value
	printn abs(-3.3)
	3.3

Note: This function can be applied to all numeric types (including arrays & workspaces).

Abs()

Calculates the absolute value of a number or of the numbers in an array. All negative numbers will be returned as positive numbers of the same magnitude.

Parameters:

X (Generic)

A single number, array or workspace containing the values for which to find |x|. Undefined values passed to this function will be returned undefined. Illegal values (ie negative numbers are permitted) but will return an undefined result.

RESULT = (Generic)

Either the absolute value or an undefined result.