flt.nan? â true or false
Instance Public methods
Returns true
if flt is an invalid IEEE floating point
number.
1 2 3 4 | a = - 1 . 0 #=> -1.0 a.nan? #=> false a = 0 . 0 / 0 . 0 #=> NaN a.nan? #=> true |
Returns true
if flt is an invalid IEEE floating point
number.
1 2 3 4 | a = - 1 . 0 #=> -1.0 a.nan? #=> false a = 0 . 0 / 0 . 0 #=> NaN a.nan? #=> true |
Designed by : w10schools
service@w10schools.com
Please login to continue.