php man page for is_nan

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 number

SYNOPSIS
bool is_nan (float $val)
DESCRIPTION
Checks whether $val is 'not a number', like the result of acos(1.01).
PARAMETERS
o $val - The value to check
RETURN VALUES
Returns TRUE if $val is 'not a number', else FALSE.
EXAMPLES
Example #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 ALSO
is_finite(3), is_infinite(3). PHP Documentation Group IS_NAN(3)
Related Man Pages
nan(3m) - opensolaris
nanf(3m) - opensolaris
isset(3) - php
class_alias(3) - php
empty(3) - php
Similar Topics in the Unix Linux Community
Warning for balakrishnan: Technical Question via email or PM
Infraction for saikrishnan7: Double Posting
Where is nanosleep?
Reminder for G0kulakrishnan: 1st Reminder to Add Code Tags
Reminder for Krishnanth S: Technical Question in Non-Technical Forum