<div dir="ltr"><div class="gmail_quote">On Thu, Mar 24, 2011 at 21:27, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Unless Jed figures out a way to do it the current model is that with quad they are printed wrong and you need to manage their display yourself.</blockquote></div><br><div>So libquadmath introduces the Q type qualifier so you can use %Qe, %Qf, %Qg. Unfortunately libc is behind the times unless you have a bleeding-edge version (inconvenient without disrupting the rest of your system). To deal with not having a new enough libc, you can use quadmath_snprintf:</div>
<div><br></div><div>char buf[256];</div><div>quadmath_snprintf(buf,sizeof buf,"%Qg",my_float128);</div><div><br></div></div>