Query: is_nan
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IS_NAN(3) 1 IS_NAN(3) is_nan - Finds whether a value is not a numberSYNOPSISbool is_nan (float $val)DESCRIPTIONChecks whether $val is 'not a number', like the result of acos(1.01).PARAMETERSo $val - The value to checkRETURN VALUESReturns TRUE if $val is 'not a number', else FALSE.EXAMPLESExample #1 is_nan(3) example <?php // Invalid calculation, will return a // NaN value $nan = acos(8); var_dump($nan, is_nan($nan)); ?> The above example will output: float(NAN) bool(true)SEE ALSOis_finite(3), is_infinite(3). PHP Documentation Group IS_NAN(3)