Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
local a = 0/0
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
a = float('nan')
a = Float::NAN
let a: f64 = f64::NAN;