ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct ($scale=0) | |
ilMathBcMathAdapter constructor. More... | |
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) | |
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 ilMathBCMathAdapter
Definition at line 23 of file class.ilMathBCMathAdapter.php.
ilMathBCMathAdapter::__construct | ( | $scale = 0 | ) |
ilMathBcMathAdapter constructor.
int | $scale |
Definition at line 29 of file class.ilMathBCMathAdapter.php.
ilMathBCMathAdapter::add | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 37 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
ilMathBCMathAdapter::comp | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 116 of file class.ilMathBCMathAdapter.php.
ilMathBCMathAdapter::div | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 61 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
ilMathBCMathAdapter::mod | ( | $left_operand, | |
$right_operand | |||
) |
Implements ilMathAdapter.
Definition at line 73 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
ilMathBCMathAdapter::mul | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 53 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
ilMathBCMathAdapter::pow | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 85 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\applyScale(), ilMathBaseAdapter\exp2dec(), and ilMathBaseAdapter\normalize().
ilMathBCMathAdapter::sqrt | ( | $operand, | |
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 108 of file class.ilMathBCMathAdapter.php.
ilMathBCMathAdapter::sub | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 45 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().