Forum Discussion
SimonPerkins
13 years agoCommunity Member
Can I prevent "NaN" from appearing in numerical entry?
Is there a way to do this? Am using conditions to handle which numbers ARE allowed and to display an error if invalid numbers are entered. But can't get it to stop letters etc from being entered/...
KenFlieger
4 years agoCommunity Member
NAN is 'Not A Number' error in JavaScript. If you are not using custom JavaScript code then it bares down to extremely bad coding on the developer's side. The developer has to trap any strings, Infinity numbers and spaces or any other value the user may enter that is not a number value. Sloppy code writing.