Re: [petsc-dev] Updated src/sys/examples/tutorials/ex5.c
25 Mar
2011
25 Mar
'11
8:01 a.m.
On Thu, Mar 24, 2011 at 21:27, Barry Smith <[email protected]> wrote:
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.
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: char buf[256]; quadmath_snprintf(buf,sizeof buf,"%Qg",my_float128);
5618
Age (days ago)
5618
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jed Brown