<?php
echo floor(3.14159265);
// Value would be 3echo ceil(3.99999999);
// Value would be 3echo ceil(-3.14159265);
// Value would be -4
?>
By Angela Bradley, About.com
<?php
echo floor(3.14159265);
// Value would be 3echo ceil(3.99999999);
// Value would be 3echo ceil(-3.14159265);
// Value would be -4
?>
PHP Message BoardsComment on the 'Rounding Numbers' Blog Entry
©2008 About.com, a part of The New York Times Company.
All rights reserved.