Javatpoint Logo
Javatpoint Logo

PHP is_float Function

By using this function, we can check that the input value is float or not. This function was introduced in PHP 4.0.

Syntax

Parameters

Parameter Description Is compulsory
var The variable being evaluated. compulsory

Return type:

The is_float() function returns TRUE if the var_name is float, otherwise false.

Example 1

Output:

PHP variable handling is_float Function

Example 2

Output:

PHP variable handling is_float Function

Example 3

Output:

PHP variable handling is_float Function

Precision::

It is a configuration setting in php.ini used to specify a total number of digits displayed in floating point number.

Here it is:

PHP variable handling is_float Function

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA