![]() |
Float nan?() is a float class method that checks whether the value is ‘not a number’. ‘Not A Number’ means an invalid IEEE floating-point number.
Example #1: Ruby
Output : a is not_a_number : false b is not_a_number : false Example #2: Ruby
Output : a is not_a_number : false b is not_a_number : false
|
Reffered: https://www.geeksforgeeks.org
Ruby |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 10 |