PHP Program to demonstrate floating point datatype

Program

<!DOCTYPE html>
<html>
<body>
<?php  
$pi_val = 3.141;
echo "<p>Printing datatype using echo</p>";
var_dump($pi_val);
print "<p>Printing value using print</p>" . $pi_val;
?>
</body>
</html>

Output

Printing datatype using echo
float(3.141)
Printing value using print
3.141