Gen. partnerAlgotech

PHP function is_float()

|
September 11, 2019

Availability in PHP 4.0

Checks if the input value is float (floating point number).

For example, the number 3.14 is float.

Parameters

Parameter Data type Default value Note
$var mixed not Variable to be validated.

Return values

bool

Returns true if float. Otherwise false

Other resources

[Official is-float documentation](Official manual)

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.