Returns the absolute value of the input.

x

An input to this operation.

This input supports scalar numbers and fixed-size 1-dimensional arrays of numbers. x cannot be an unsigned integer because unsigned integers represent only non-negative numbers.

Data Type Changes on FPGA

absolute value

The absolute value of the input.

When x is of the form x = a + b i, that is, when x is complex, the following equation defines abs:
$abs\left(x\right)=\sqrt{{a}^{2}+{b}^{2}}$

Data Type Changes on FPGA