ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
IntClass.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\MathTrig
;
4
5
use
PhpOffice\PhpSpreadsheet\Calculation\Exception
;
6
7
class
IntClass
8
{
21
public
static
function
evaluate
($number)
22
{
23
try
{
24
$number =
Helpers::validateNumericNullBool
($number);
25
}
catch
(
Exception
$e) {
26
return
$e->getMessage();
27
}
28
29
return
(
int
) floor($number);
30
}
31
}
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Helpers\validateNumericNullBool
static validateNumericNullBool($number)
Many functions accept null/false/true argument treated as 0/0/1.
Definition:
Helpers.php:27
Exception
PhpOffice\PhpSpreadsheet\Calculation\MathTrig
Definition:
Absolute.php:3
php
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\IntClass\evaluate
static evaluate($number)
INT.
Definition:
IntClass.php:21
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\IntClass
Definition:
IntClass.php:7
Exception
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
MathTrig
IntClass.php
Generated on Thu Feb 27 2025 19:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)