Please contact us if you have any trouble resetting your password.
float x; ... if (x == nan || x == inf || x == -inf){ ... }
if( x != x ) { // it's a nan}