<?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
<?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
©2008 About.com, a part of The New York Times Company.
All rights reserved.