Hm, actually, something weirder is going on:
isNaN('1.5x') -> true
isNaN('1.5d') -> false
What is it about "d"? Is it some kind of numerical literal? Again, this
is not standard behavior for JavaScript.
On 03/24/2015 07:40 PM, Tal Liron wrote:
In most JavaScript engines, this would return true if value is fully
numerical:
!isNaN(value - 0)
But in Nashorn, it returns true if even if value is a string that
begins with a number. It seems that arithmetic with strings is working
non-standardly in Nashorn.