|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilMathBaseAdapter:
Collaboration diagram for ilMathBaseAdapter:Public Member Functions | |
| applyScale ($left_operand, int $scale=null) | |
| @inheritDoc More... | |
| round ($value, int $precision=0) | |
| @inheritDoc More... | |
| equals ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
Public Member Functions inherited from ilMathAdapter | |
| 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) | |
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 |
||
| ) |
@inheritDoc
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMathBaseAdapter::equals | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 61 of file class.ilMathBaseAdapter.php.
References ilMathAdapter\comp().
Here is the call graph for this function:
|
protected |
| float | string | int | $float_str |
Definition at line 101 of file class.ilMathBaseAdapter.php.
Referenced by applyScale(), normalize(), and ilMathBCMathAdapter\pow().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMathBaseAdapter::round | ( | $value, | |
| int | $precision = 0 |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 53 of file class.ilMathBaseAdapter.php.