real [C++ Reference]
Keywords: complex,real
Date: 2010-04-19T02:16:20-0700

[[real]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## real

Syntax:

        #include <complex>
        template <class T>
        T real( complex<T> num );
        // or:
        T complex<T>::real( );

The real() function returns the real part of num. It is available as both a regular function and as a method of the complex number.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •