cmatrix.abs

cmatrix.abs()

Get the absolute value of the given argument.

Parameters

type

Description

x

double

The raw value to treat

Returns
double

The absolute value of x

Examples

>>> m=-123
>>> n=123
>>> abs(m)
123
>>> abs(n)
123