description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: cabs, cabsf, cabsl |
cabs, cabsf, cabsl |
11/04/2016 |
|
|
|
|
|
|
6b8eb453-cc8f-4972-bebf-351cbdfdfc15 |
Retrieves the absolute value of a complex number.
double cabs(
_Dcomplex z
);
float cabs(
_Fcomplex z
); // C++ only
long double cabs(
_Lcomplex z
); // C++ only
float cabsf(
_Fcomplex z
);
long double cabsl(
_Lcomplex z
);
z
A complex number.
The absolute value of z
.
Because C++ allows overloading, you can call overloads of cabs
that take _Fcomplex
or _Lcomplex
values, and return float
or long double
values. In a C program, cabs
always takes a _Dcomplex
value and returns a double
value.
Routine | C header | C++ header |
---|---|---|
cabs , cabsf , cabsl |
<complex.h> | <ccomplex> |
For more compatibility information, see Compatibility.
Alphabetical function reference
norm
, normf
, norml
creal
, crealf
, creall
cproj
, cprojf
, cprojl
conj
, conjf
, conjl
cimag
, cimagf
, cimagl
carg
, cargf
, cargl