ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface ilMathAdapter. More...
Public Member Functions | |
add ($left_operand, $right_operand, $scale=null) | |
Adds two numbers. More... | |
sub ($left_operand, $right_operand, $scale=null) | |
Subtracts two numbers. More... | |
mul ($left_operand, $right_operand, $scale=null) | |
Multiplies two numbers. More... | |
div ($left_operand, $right_operand, $scale=null) | |
Divides two numbers. More... | |
mod ($left_operand, $right_operand) | |
Gets modulus of two numbers. More... | |
pow ($left_operand, $right_operand, $scale=null) | |
Raises a number to another. More... | |
sqrt ($operand, $scale=null) | |
Gets the square root of a number. More... | |
comp ($left_operand, $right_operand, $scale=null) | |
Compares two numbers. More... | |
equals ($left_operand, $right_operand, $scale=null) | |
Checks whether or not two numbers are identical. More... | |
applyScale ($left_operand, $scale=null) | |
round ($value, $precision=0) | |
Interface ilMathAdapter.
Definition at line 8 of file interface.ilMathAdapter.php.
ilMathAdapter::add | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Adds two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
Implemented in ilMathBCMathAdapter, and ilMathPhpAdapter.
ilMathAdapter::applyScale | ( | $left_operand, | |
$scale = null |
|||
) |
ilMathAdapter::comp | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Compares two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
Referenced by ilMathBaseAdapter\equals().
ilMathAdapter::div | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Divides two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
ilMathDivisionByZeroException |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::equals | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Checks whether or not two numbers are identical.
mixed | $left_operand | |
mixed | $right_operand | |
int | $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, | |||
$scale = null |
|||
) |
Multiplies two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
Implemented in ilMathBCMathAdapter, and ilMathPhpAdapter.
ilMathAdapter::pow | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Raises a number to another.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
Referenced by ilMathBaseAdapter\normalize().
ilMathAdapter::round | ( | $value, | |
$precision = 0 |
|||
) |
ilMathAdapter::sqrt | ( | $operand, | |
$scale = null |
|||
) |
Gets the square root of a number.
mixed | $operand | |
int | $scale |
Implemented in ilMathPhpAdapter, and ilMathBCMathAdapter.
ilMathAdapter::sub | ( | $left_operand, | |
$right_operand, | |||
$scale = null |
|||
) |
Subtracts two numbers.
mixed | $left_operand | |
mixed | $right_operand | |
int | $scale |
Implemented in ilMathBCMathAdapter, and ilMathPhpAdapter.