ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
applyScale ($left_operand, int $scale=null) | |
round ($value, int $precision=0) | |
equals ($left_operand, $right_operand, int $scale=null) | |
![]() | |
add ($left_operand, $right_operand, int $scale=null) | |
Adds two numbers. More... | |
sub ($left_operand, $right_operand, int $scale=null) | |
Subtracts two numbers. More... | |
mul ($left_operand, $right_operand, int $scale=null) | |
Multiplies two numbers. More... | |
div ($left_operand, $right_operand, int $scale=null) | |
Divides two numbers. More... | |
mod ($left_operand, $right_operand) | |
Gets modulus of two numbers. More... | |
pow ($left_operand, $right_operand, int $scale=null) | |
Raises a number to another. More... | |
sqrt ($operand, int $scale=null) | |
Gets the square root of a number. More... | |
comp ($left_operand, $right_operand, int $scale=null) | |
Compares two numbers. More... | |
Protected Member Functions | |
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 ilMathBaseAdapter
Definition at line 23 of file class.ilMathBaseAdapter.php.
ilMathBaseAdapter::applyScale | ( | $left_operand, | |
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 28 of file class.ilMathBaseAdapter.php.
References exp2dec(), and ILIAS\Repository\int().
Referenced by ilMathPhpAdapter\add(), ilMathPhpAdapter\comp(), ilMathPhpAdapter\div(), ilMathPhpAdapter\mul(), ilMathBCMathAdapter\pow(), ilMathPhpAdapter\pow(), ilMathPhpAdapter\sqrt(), and ilMathPhpAdapter\sub().
ilMathBaseAdapter::equals | ( | $left_operand, | |
$right_operand, | |||
int | $scale = null |
||
) |
Implements ilMathAdapter.
Definition at line 61 of file class.ilMathBaseAdapter.php.
References ilMathAdapter\comp().
|
protected |
float | string | int | $float_str |
Definition at line 101 of file class.ilMathBaseAdapter.php.
Referenced by applyScale(), normalize(), and ilMathBCMathAdapter\pow().
|
protected |
This function fixes problems which occur when locale ist set to de_DE for example, because bc* function expecting strings.
mixed | $number |
Definition at line 72 of file class.ilMathBaseAdapter.php.
References exp2dec(), and ILIAS\Repository\int().
Referenced by ilMathBCMathAdapter\add(), ilMathPhpAdapter\add(), ilMathPhpAdapter\comp(), ilMathBCMathAdapter\div(), ilMathPhpAdapter\div(), ilMathBCMathAdapter\mod(), ilMathPhpAdapter\mod(), ilMathBCMathAdapter\mul(), ilMathPhpAdapter\mul(), ilMathBCMathAdapter\pow(), ilMathPhpAdapter\pow(), ilMathPhpAdapter\sqrt(), ilMathBCMathAdapter\sub(), and ilMathPhpAdapter\sub().
ilMathBaseAdapter::round | ( | $value, | |
int | $precision = 0 |
||
) |
Implements ilMathAdapter.
Definition at line 53 of file class.ilMathBaseAdapter.php.