BcMath\Number::floor

Rounds down an arbitrary precision number

&reftitle.description; public `BcMath\Number` `BcMath\Number::floor`

Returns the next highest integer value by rounding down `$this` if necessary.

&reftitle.parameters; &no.function.parameters;
&reftitle.examples;

### `BcMath\Number::floor` example

    <?php
    $num1 = new BcMath\Number('4.3')->floor();
    $num2 = new BcMath\Number('9.999')->floor();
    $num3 = new BcMath\Number('-3.14')->floor();

    var_dump($num1, $num2, $num3);
    ?>

&example.outputs;

    object(BcMath\Number)#2 (2) {
      ["value"]=>
      string(1) "4"
      ["scale"]=>
      int(0)
    }
    object(BcMath\Number)#3 (2) {
      ["value"]=>
      string(1) "9"
      ["scale"]=>
      int(0)
    }
    object(BcMath\Number)#4 (2) {
      ["value"]=>
      string(2) "-4"
      ["scale"]=>
      int(0)
    }

&reftitle.seealso;

- `bcfloor`
- `BcMath\Number::ceil`
- `BcMath\Number::round`