1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .TH CREAL 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
7 creal, crealf, creall \- get real part of a complex number
10 .RI ( libm ", " \-lm )
13 .B #include <complex.h>
15 .BI "double creal(double complex " z );
16 .BI "float crealf(float complex " z );
17 .BI "long double creall(long double complex " z );
20 These functions return the real part of the complex number
26 z = creal(z) + I * cimag(z)
29 These functions first appeared in glibc in version 2.1.
31 For an explanation of the terms used in this section, see
39 Interface Attribute Value
44 T} Thread safety MT-Safe
50 C99, POSIX.1-2001, POSIX.1-2008.
52 The gcc supports also __real__.
53 That is a GNU extension.