Posts Tagged ‘floor() rounds the value to the floor’
floor() in Php
Wednesday, November 5, 2008 23:27 2 Commentsfloor() is the opposite of Ceil(). It rounds down a floating-point number to the next-lowest integer, no matter what the value of the floating-point number is. Integer on success; FALSE on error Example #1 floor() example < ?php echo floor(4.3); // 4 echo floor(9.999); // 9 echo floor(-3.14); // -4 ?> //

