The quadmath library does not have much documentation online and I would like to perform two simple actions using __complex128
type.
- Is there a way to easily print the value inside a variable of this type?
- How can I convert back a variable from
__complex128
tocomplex<double>
, or even the single__float128
real and imaginary parts to double?
The second question is more important because if I can convert it I can simply use cout
!
EDIT: Everything comes to the following question. How do I convert __float128
to double
?