Is it an integer : nan « Number « Ruby






Is it an integer


12.integer? # => true
12.0.integer? # => false
-1.integer? # => true
-12.integer? # => true

 








Related examples in the same category

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