floor() in Php

Wednesday, November 5, 2008 23:27
Posted in category PHP, Programming

floor() 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
?>
You can leave a response, or trackback from your own site.

2 Responses to “floor() in Php”

  1. Alexwebmaster says:

    March 3rd, 2009 at 9:45 am

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  2. PHP_Starter says:

    March 16th, 2009 at 11:24 pm

    yes you can

Leave a Reply