You are here : phpmathfloor

floor() - math

Returns the next lowest integer value (as float) by rounding down value if necessary.

Parameters :
  • value - The numeric value to round

  • Syntax

    mixed floor
         ( float $value
        )


    Example

    <?phpecho floor(4.3);   // 4echo floor(9.999); // 9echo floor(-3.14); // -4?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference