abs

HC Arithmetic Numeric Operations abs
Modulo conjugate

abs num


outputs the absolute value of num, that is num with its sign made positive.

Examples:

abs -1		;1  ;-)
abs -1.2		;1.2  ;-)
abs [-1 -2.2]		;[1 2.2] ;-)

Reference:

Modulo conjugate