Checks whether $nval is 'not a number', like the result of acos(1.01).
bool is_nan ( float $val )
No comments so far for is_nan(). Leave yours as first below.