Home > PHP > Function > Variable handling > is_float()

is_float()

is_float - Finds whether the type of a variable is float

Syntax

bool is_float (mixed $var)

Arguments

  • var - The variable being evaluated.

Description

Finds whether the type of the given variable is float.

Version

PHP 4, 5

Return value

Returns TRUE if var is a float, FALSE otherwise.