Despite the rather clear documentation which says that parseFloat() can return NaN as a value, when I write a block like:
if ( NaN == parseFloat(input.text) ) {
errorMessage.text = "Please enter a number."
}
I am warned that the comparison will always be false. And testing shows the warning to be correct.
Where is the corrected documentation, and how can I write this to work with AS3?