Converting Complex Numbers (GNU MPC 1.2.1)

Next: String and Stream Input and Output, Previous: Assigning Complex Numbers, 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.