The ceil() function with php allows you to round a number up to the nearest whole number. It has many benefits, but, you must take into consideration that any decimal points will be removed.
Ceiling Example
$number = ceil(21.5); echo $number; // output is 22 echo ceil(33.67); // output is 34. echo "My answer to the math question is ".ceil(100.9); // Output is My answer to the math question is 100.
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton