method isNaN
1 | class Complex |
1.1 | (Complex) method isNaN |
2 | role Rational |
2.1 | (Rational) method isNaN |
Documentation for method isNaN
assembled from the following types:
class Complex
From Complex
(Complex) method isNaN
Defined as:
method isNaN(Complex: --> Bool)
Returns true if the real or imaginary part is NaN
(not a number).
say (NaN+5i).isNaN; # OUTPUT: «True»say (7+5i).isNaN; # OUTPUT: «False»
role Rational
From Rational
(Rational) method isNaN
method isNaN(Rational: --> Bool)
Tests whether the invocant's Num value is a NaN, an acronym for Not available Number. That is both its numerator and denominator are zero.