is_double
bool is_double(mixed value)
Tests whether a value is a double.
Returns:
TRUE if the value is a double; FALSE otherwise
Description:
is_double() checks whether value is a double. If so, the function returns TRUE. If not, FALSE is returned.
Availability:
UNIX, Windows
Version:
3+, 4+
See also:
gettype()
Example:
Test whether a value is a double
$value = 3000000000; // Note that the value contained in $value is larger what can usually be stored // in an integer. if (is_double ($value)) print 'Value $value is a double.'; else print 'Value $value is not a double.'; |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.