ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
add ($left_operand, $right_operand, int $scale=null) | |
sub ($left_operand, $right_operand, int $scale=null) | |
mul ($left_operand, $right_operand, int $scale=null) | |
div ($left_operand, $right_operand, int $scale=null) | |
mod ($left_operand, $right_operand) | |
pow ($left_operand, $right_operand, int $scale=null) | |
sqrt ($operand, int $scale=null) | |
comp ($left_operand, $right_operand, int $scale=null) | |
![]() | |
applyScale ($left_operand, int $scale=null) | |
round ($value, int $precision=0) | |
equals ($left_operand, $right_operand, int $scale=null) | |
Private Member Functions | |
transformToNumeric (?string $operand) | |
Additional Inherited Members | |
![]() | |
normalize ($number) | |
This function fixes problems which occur when locale ist set to de_DE for example, because bc* function expecting strings. More... | |
exp2dec ($float_str) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilMathPhpAdapter
Definition at line 23 of file class.ilMathPhpAdapter.php.
ilMathPhpAdapter::add | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 45 of file class.ilMathPhpAdapter.php.
References $res, ilMathBaseAdapter\applyScale(), and ilMathBaseAdapter\normalize().
ilMathPhpAdapter::comp | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 154 of file class.ilMathPhpAdapter.php.
References ilMathBaseAdapter\applyScale(), and ilMathBaseAdapter\normalize().
ilMathPhpAdapter::div | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 91 of file class.ilMathPhpAdapter.php.
References Vendor\Package\$e, $res, ilMathBaseAdapter\applyScale(), ilMathBaseAdapter\normalize(), and transformToNumeric().
ilMathPhpAdapter::mod | ( | $left_operand, | |
$right_operand | |||
) |
Implements ilMathAdapter.
Definition at line 122 of file class.ilMathPhpAdapter.php.
References ilMathBaseAdapter\normalize().
ilMathPhpAdapter::mul | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 65 of file class.ilMathPhpAdapter.php.
References Vendor\Package\$e, $res, ilMathBaseAdapter\applyScale(), ilMathBaseAdapter\normalize(), and transformToNumeric().
ilMathPhpAdapter::pow | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 134 of file class.ilMathPhpAdapter.php.
References $res, ilMathBaseAdapter\applyScale(), and ilMathBaseAdapter\normalize().
ilMathPhpAdapter::sqrt | ( | $operand, | |
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 144 of file class.ilMathPhpAdapter.php.
References $res, ilMathBaseAdapter\applyScale(), and ilMathBaseAdapter\normalize().
ilMathPhpAdapter::sub | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 55 of file class.ilMathPhpAdapter.php.
References $res, ilMathBaseAdapter\applyScale(), and ilMathBaseAdapter\normalize().
|
private |
string | null | $operand |
Definition at line 29 of file class.ilMathPhpAdapter.php.
References ILIAS\Repository\int().
Referenced by div(), and mul().