Converting Complex Numbers (GNU MPC 1.3.0)

Next: String and Stream Input and Output, Previous: Assignment Functions, Up: Complex Functions [Index]

### 5.3 Conversion Functions

The following functions are available only if `<complex.h>` is included before `mpc.h`.

Function: double _Complex mpc_get_dc (const mpc_t op, mpc_rnd_t rnd) ¶
Function: long double _Complex mpc_get_ldc (mpc_t op, mpc_rnd_t rnd) ¶

  Convert op to a C complex number, using the rounding mode rnd.

For functions converting complex variables to strings or stream output, see String and Stream Input and Output.