← All built-ins / is_float()
is_float()
is_float(mixed $number): bool
Parameters
| Name | Type | Description |
|---|---|---|
| $v | mixed | value to test |
Return value
true when the value is a float.
Example
var_dump(is_float(1.5)); var_dump(is_float(1));
bool(true) bool(false)