Home > PHP > Function > Math > is_nan()

is_nan()

is_nan - Finds whether a value is not a number

Syntax

bool is_nan (float $val)

Arguments

  • val - The value to check

Description

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

Version

PHP 4.2.0, 5

Return value

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