|
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 ilMathBCMathAdapter:
Collaboration diagram for ilMathBCMathAdapter:Public Member Functions | |
| __construct ($scale=0) | |
| ilMathBcMathAdapter constructor. More... | |
| add ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
| sub ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
| mul ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
| div ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
| mod ($left_operand, $right_operand) | |
| @inheritDoc More... | |
| pow ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
| sqrt ($operand, int $scale=null) | |
| @inheritDoc More... | |
| comp ($left_operand, $right_operand, int $scale=null) | |
| @inheritDoc More... | |
Public Member Functions inherited from ilMathBaseAdapter | |
| 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... | |
| 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) | |
Additional Inherited Members | |
Protected Member Functions inherited from ilMathBaseAdapter | |
| 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 |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 37 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
Here is the call graph for this function:| ilMathBCMathAdapter::comp | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 116 of file class.ilMathBCMathAdapter.php.
| ilMathBCMathAdapter::div | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 61 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
Here is the call graph for this function:| ilMathBCMathAdapter::mod | ( | $left_operand, | |
| $right_operand | |||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 73 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
Here is the call graph for this function:| ilMathBCMathAdapter::mul | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 53 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
Here is the call graph for this function:| ilMathBCMathAdapter::pow | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 85 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\applyScale(), ilMathBaseAdapter\exp2dec(), and ilMathBaseAdapter\normalize().
Here is the call graph for this function:| ilMathBCMathAdapter::sqrt | ( | $operand, | |
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 108 of file class.ilMathBCMathAdapter.php.
| ilMathBCMathAdapter::sub | ( | $left_operand, | |
| $right_operand, | |||
| int | $scale = null |
||
| ) |
@inheritDoc
Implements ilMathAdapter.
Definition at line 45 of file class.ilMathBCMathAdapter.php.
References ilMathBaseAdapter\normalize().
Here is the call graph for this function: