3. Floating point(double) data type
Floating points are also known as
double,
float and
real numbers.
Floating points are noting but fractions (decimal numbers), and can be negative as well as positive numbers.
Examples :
<?php
$var1 = 0.5;
$var2 = -0.5;
$var3 = 1.2e-10;
$var3 = -1.2e10;
echo $var1."<br>";
echo $var2."<br>";
echo $var3."<br>";
echo $var4."<br>";
?>
Output
0.5
-0.5
-12000000000
-12000000000