No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

is_nan

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

is_nanFinds whether a value is not a number

Description

is_nan ( float $val ) : bool

Checks whether val is 'not a number', like the result of acos(1.01).

PHP: is_nan - Manual Home of Manuel PHP  Contents Haut

Parameters

val

The value to check

PHP: is_nan - Manual Home of Manuel PHP  Contents Haut

Return Values

Returns TRUE if val is 'not a number', else FALSE.

PHP: is_nan - Manual Home of Manuel PHP  Contents Haut

Examples

Example #1 is_nan() example

<?php
// Invalid calculation, will return a 
// NaN value
$nan acos(8);

var_dump($nanis_nan($nan));
?>

The above example will output:

float(NAN)
bool(true)

PHP: is_nan - Manual Home of Manuel PHP  Contents Haut

See Also

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph