(FW >= 1.0)

floatval- Get the floating point value of a variable


float floatval ($var)
This function will return the floating point equivalent of the variable $var


$var - a string, int or float value

Return Value

The floating point value of var on success, or 0 on failure. Empty arrays return 0, non-empty arrays return 1.Examples
$x = 1;
// converts the int $x into a variable $f which has a value of 1.0
$f = floatval($x);
print("The float value of ".$x." is ".$f);