shouldn't that be `NaN`? `nan` is not defined in JS.