> For the record, isNaN in JavaScript is also not necessarily the fastest way of doing it
Which will absolutely not matter in 100% of the cases after rounding. `isNaN` is simple (your original criteria) and clearly says what it's doing.
Which will absolutely not matter in 100% of the cases after rounding. `isNaN` is simple (your original criteria) and clearly says what it's doing.
For the record, isNaN in JavaScript is also not necessarily the fastest way of doing it: http://jsperf.com/nantest