say isnan($a) ? 'true' : 'false';;
# prints true
say $a == $a ? 'true' : 'false';
# prints false because NaN does not equal NaN
say issignaling($a) ? 'true' : 'false';
# prints false because $a is non-signaling
my $b = nan(999); # set to signaling NaN by adding a payload
say $b;
# prints NaN
say getpayload($b);
# prints 999