nan#

Build a quiet NaN, optionally with a payload string.

Σύνοψη#

my $q = POSIX::nan();        # quiet NaN
my $p = POSIX::nan("0x42");  # NaN with payload where supported

Οριακές περιπτώσεις#

  • An empty or missing argument yields a plain quiet NaN.

  • Payload strings the C library cannot parse fall back to a plain quiet NaN silently.

Διαφορές από το upstream#

Fully compatible with upstream POSIX.