<?php
echo ceil(3.14159265);
// Value would be 4echo ceil(3.00000001);
// Value would be 4echo ceil(-3.14159265);
// Value would be -3
?>
By Angela Bradley, About.com Guide
<?php
echo ceil(3.14159265);
// Value would be 4echo ceil(3.00000001);
// Value would be 4echo ceil(-3.14159265);
// Value would be -3
?>
PHP Message BoardsComment on the 'Rounding Numbers' Blog Entry
What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >
Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >
©2009 About.com, a part of The New York Times Company.
All rights reserved.