Source Code:
(back to article)
<?php $num = 3.14159; $ceiled = ceil($num); echo $ceiled; // Output: 4 echo "\n"; $floored = floor($num); // Output: 3 echo $floored; ?>
Result:
Report an issue