<?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
Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >
Easy ways to connect two computers for networking purposes. More >
©2009 About.com, a part of The New York Times Company.
All rights reserved.