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.