<html>
<head>
<title>Floating Point Numbers</title>
</head>
<body>
<?php
$var1 = 3.14
?>
<?php
echo 4/3;
?>
Floor: <?php echo floor($myFloat); ?><br />
Floating point: <?php echo $myFloat = 3.14; ?><br />
Round: <?php echo round($myFloat, 1); ?><br />
Ceiling: <?php echo ceil($myFloat); ?><br />
</body>
</html>
<head>
<title>Floating Point Numbers</title>
</head>
<body>
<?php
$var1 = 3.14
?>
<?php
echo 4/3;
?>
Floor: <?php echo floor($myFloat); ?><br />
Floating point: <?php echo $myFloat = 3.14; ?><br />
Round: <?php echo round($myFloat, 1); ?><br />
Ceiling: <?php echo ceil($myFloat); ?><br />
</body>
</html>
0 comments:
Post a Comment