Documentation

FloorMath

Table of Contents

funcFloorMath() FLOOR.MATH. float|string
argsOk() Avoid Scrutinizer complexity problems. float|string
floorMathTest() Let FLOORMATH complexity pass Scrutinizer. bool

Methods

funcFloorMath()

FLOOR.MATH.

public static funcFloorMath( $number : mixed [, $significance : mixed = null ] , $mode : mixed ) : float|string

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

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

Parameters
$number : mixed

Number to round

$significance : mixed = null

Significance

$mode : mixed

direction to round negative numbers

Return values
float|string —

Rounded Number, or a string containing an error

argsOk()

Avoid Scrutinizer complexity problems.

private static argsOk( $number : float , $significance : float , $mode : int ) : float|string
Parameters
$number : float
$significance : float
$mode : int
Return values
float|string —

Rounded Number, or a string containing an error

floorMathTest()

Let FLOORMATH complexity pass Scrutinizer.

private static floorMathTest( $number : float , $significance : float , $mode : int ) : bool
Parameters
$number : float
$significance : float
$mode : int
Return values
bool

Search results