By using this function, we can check that the input value is float or not. This function was introduced in PHP 4.0.
Parameter | Description | Is compulsory |
---|---|---|
var | The variable being evaluated. | compulsory |
The is_float() function returns TRUE if the var_name is float, otherwise false.
Output:
Output:
Output:
It is a configuration setting in php.ini used to specify a total number of digits displayed in floating point number.