The floatval function is used to get the floating point value of a variable.
floatval cannot be used with arrays or objects.
Version requirements: PHP 4 >= 4.2.0, PHP 5, PHP 7.
doubleval is an alias for floatval.
float floatval (mixed $var)
Parameter description:
$var: The variable to be converted, not an array or object.
The float value of variable var.
The execution result is as follows:
122.34343