ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
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) | |
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... | |
equals ($left_operand, $right_operand, ?int $scale=null) | |
Checks whether or not two numbers are identical. More... | |
applyScale ($left_operand, ?int $scale=null) | |
This method adapts the behaviour of bcscale() More... | |
round ($value, int $precision=0) | |
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 Interface ilMathAdapter
Definition at line 23 of file interface.ilMathAdapter.php.
ilMathAdapter::add | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Adds two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::applyScale | ( | $left_operand, | |
?int | $scale = null |
||
) |
This method adapts the behaviour of bcscale()
mixed | $left_operand | |
int | null | $scale |
Implemented in ilMathBaseAdapter.
ilMathAdapter::comp | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Compares two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
Referenced by ilMathBaseAdapter\equals().
ilMathAdapter::div | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Divides two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
ilMathDivisionByZeroException |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::equals | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Checks whether or not two numbers are identical.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathBaseAdapter.
ilMathAdapter::mod | ( | $left_operand, | |
$right_operand | |||
) |
Gets modulus of two numbers.
mixed | $left_operand | |
mixed | $right_operand |
ilMathDivisionByZeroException |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::mul | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Multiplies two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::pow | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Raises a number to another.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::round | ( | $value, | |
int | $precision = 0 |
||
) |
mixed | $value |
Implemented in ilMathBaseAdapter.
ilMathAdapter::sqrt | ( | $operand, | |
?int | $scale = null |
||
) |
Gets the square root of a number.
mixed | $operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::sub | ( | $left_operand, | |
$right_operand, | |||
?int | $scale = null |
||
) |
Subtracts two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | null | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.