Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Ceiling Class Reference

Static Public Member Functions

static ceiling ($number, $significance=null)
 
static math ($number, $significance=null, $mode=0)
 CEILING.MATH.
 
static precise ($number, $significance=1)
 CEILING.PRECISE.
 

Member Function Documentation

◆ math()

static PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Ceiling::math ( $number,
$significance = null,
$mode = 0 )
static

CEILING.MATH.

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

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

Parameters
mixed$numberNumber to round Or can be an array of values
mixed$significanceSignificance Or can be an array of values
array | int$modedirection to round negative numbers Or can be an array of values
Return values
array|float|stringRounded Number, or a string containing an error If an array of numbers is passed as an argument, then the returned result will also be an array with the same dimensions

◆ precise()

static PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Ceiling::precise ( $number,
$significance = 1 )
static

CEILING.PRECISE.

Rounds number up, away from zero, to the nearest multiple of significance.

Excel Function: CEILING.PRECISE(number[,significance])

Parameters
mixed$numberthe number you want to round Or can be an array of values
array | float$significancethe multiple to which you want to round Or can be an array of values
Return values
array|float|stringRounded Number, or a string containing an error If an array of numbers is passed as an argument, then the returned result will also be an array with the same dimensions

The documentation for this class was generated from the following file: