abs

Syntax:

    #include <complex>
    template <class T>
    T abs( complex<T> num );

The abs() function returns the absolute value (i.e. distance from origin) of num.