Compute the absolute value of a complex number
#include <complex.h> double cabs( double complex value ); float cabsf( float complex value ); long double cabsl( long double complex value );
These functions compute the absolute value of the complex number specified by value.
The absolute value of value.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |