Function Testing isFiniteI see that it NaNis an infinite number (even if it is not a number :-)).
isFinite
NaN
:-)
isFinite(NaN) // returns false
What is the logic behind this? Why not the NaNend?
As Dave Newton said, NaN is not a number, and then you must consider that it is not limited and not infinite. The same thing happens to them:
NaN > 0 // false NaN < 0 // false
You might want to read the following articles:
... / .
Because an infinite number ... anyway a number. NaN is not a number in any possible sense.
This is like an error in the matrix.
The result of any arithmetic operation on NaN is NaN.
The result of any logical operation on NaN is false.
Final funds are able to be counted. It should return true or false for isFinite. I think it makes more sense for NaN to be infinite.
Source: https://habr.com/ru/post/1525289/More articles:PayPal REST Donation API - paypalPHP interrupt lines do not work - htmlJava: How to resize JPanel at runtime? - javaКак я могу связать словаря ресурсов, которые загружаются извне с диска, не включены в проект или сборку? - c#Why is cublas on GTX Titan slower than single-threaded processor code? - c ++mongodb mongodump mongorestore - mongodbSymfony 2 - UploadedFile, transfer method failed - unable to create directory ... - phpPostgres Inner Join Selecting a query returns an error: the column does not exist - sqlAndroid Encoding Multipart / form-data for Facebook - androidjQuery populates popup options based on another popup using Javascript Object Literal - javascriptAll Articles