The function returns the same as if calling:
x.real()
for
(1).
Additional overloads (2) are provided for arguments of any
fundamental arithmetic type: In this case, the function assumes the value has a zero
imaginary component, and thus simply returns
x converted to the proper type.
The return type is
double
, except if the argument is
float
or
long double
(in which case, the return type is of the same type as the argument).