PHP » PYTHON |
login |
register |
about
|
import math math.isnan(val) # Python 2.6+ is_nan(PHP 4 >= 4.2.0, PHP 5) is_nan — Finds whether a value is not a number Description
bool is_nan
( float $val
)
Checks whether val is 'not a number', like the result of acos(1.01). Parameters
Return ValuesReturns TRUE if val is 'not a number', else FALSE. Examples
Example #1 is_nan() example
<?php The above example will output: float(NAN) bool(true)
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|