|
BcMath\Number::floorRounds down an arbitrary precision number Description
public BcMath\Number BcMath\Number::floor()
Returns the next highest integer value by rounding down $this if necessary. ParametersThis function has no parameters. Return Values
Returns the result as a new BcMath\Number object.
The BcMath\Number::scale of the result is always ExamplesExample #1 BcMath\Number::floor example The above example will output:
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)
}
See Also
|