ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Absolute.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
Absolute
8
{
18
public
static
function
evaluate
($number)
19
{
20
try
{
21
$number =
Helpers::validateNumericNullBool
($number);
22
}
catch
(
Exception
$e) {
23
return
$e->getMessage();
24
}
25
26
return
abs($number);
27
}
28
}
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
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Absolute\evaluate
static evaluate($number)
ABS.
Definition:
Absolute.php:18
PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Absolute
Definition:
Absolute.php:7
Exception
PhpOffice\PhpSpreadsheet\Calculation\MathTrig
Definition:
Absolute.php:3
php
Exception
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
MathTrig
Absolute.php
Generated on Thu Jan 16 2025 19:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)