\PhpOffice\PhpSpreadsheet\Calculation\MathTrigFloorMath

Summary

Methods
Properties
Constants
funcFloorMath()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
argsOk()
floorMathTest()
No private properties found
N/A

Methods

funcFloorMath()

funcFloorMath(mixed  $number, mixed  $significance = null, mixed  $mode) : float|string

FLOOR.MATH.

Round a number down to the nearest integer or to the nearest multiple of significance.

Excel Function: FLOOR.MATH(number[,significance[,mode]])

Parameters

mixed $number

Number to round

mixed $significance

Significance

mixed $mode

direction to round negative numbers

Returns

float|string —

Rounded Number, or a string containing an error

argsOk()

argsOk(float  $number, float  $significance, int  $mode) : float|string

Avoid Scrutinizer complexity problems.

Parameters

float $number
float $significance
int $mode

Returns

float|string —

Rounded Number, or a string containing an error

floorMathTest()

floorMathTest(float  $number, float  $significance, int  $mode) : bool

Let FLOORMATH complexity pass Scrutinizer.

Parameters

float $number
float $significance
int $mode

Returns

bool —