A float (floating-point number) is a number that contains a decimal point or is expressed in exponential form.
In the following example, $x
is a float. The PHP var_dump()
function will return its data type and value:
Example
$x = 10.365;
var_dump($x);
|