[petsc-dev] NaN constant?

Jed Brown jed at jedbrown.org
Wed Oct 28 11:04:20 CDT 2015


Barry Smith <bsmith at mcs.anl.gov> writes:

>   There is no portable way that I am aware of in C89 to generate a NaN.

Fortunately, we've had C99 for 16 years.

#include <math.h>

  NAN


Is there any architecture where this isn't supported?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20151028/10cca410/attachment.sig>


More information about the petsc-dev mailing list