Is it not a number : nan « Number « Ruby






Is it not a number



val = 1.0
val.nan? # => false

 








Related examples in the same category

1.Value of not-a-number
2.Inspect a not-a-number
3.Is it an integer
4.If it is an integer