[petsc-users] petscprintf and __float128

Matthew Knepley knepley at gmail.com
Thu Sep 24 21:35:51 CDT 2015


On Thu, Sep 24, 2015 at 9:24 PM, Gideon Simpson <gideon.simpson at gmail.com>
wrote:

> I saw that Barry posted something about this in the dev listserv last
> December, but there wasn’t any follow up.  Right now, on an OS X based
> machine with gcc compilers, if I do a PetscPrintf with a __float128, with
> %g, it outputs 0.  Is there a way to get around this, other than using
> quadmath_snprintf?
>

Just cast to double.

  Matt


> -gideon
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150924/9a2d07c0/attachment.html>


More information about the petsc-users mailing list