# Value of not-a-number : nan « Number « Ruby

- Ruby
- Number
- nan

Value of not-a-number

nan = 0.0/0.0; # zero divided by zero is not-a-number
nan < 0 # false: it is not less than zero
nan > 0 # false: it is not greater than zero
nan == 0 # false: it is not equal to zero
nan == nan # false: it is not even equal to itself!
nan.equal?(nan) # **this** is true, of course

### Related examples in the same category