ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
interface.ilMathAdapter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 interface ilMathAdapter
9 {
17  public function add($left_operand, $right_operand, $scale = null);
18 
26  public function sub($left_operand, $right_operand, $scale = null);
27 
35  public function mul($left_operand, $right_operand, $scale = null);
36 
45  public function div($left_operand, $right_operand, $scale = null);
46 
54  public function mod($left_operand, $right_operand);
55 
63  public function pow($left_operand, $right_operand, $scale = null);
64 
71  public function sqrt($operand, $scale = null);
72 
73 
81  public function comp($left_operand, $right_operand, $scale = null);
82 
90  public function equals($left_operand, $right_operand, $scale = null);
91 
97  public function applyScale($left_operand, $scale = null);
98 
104  public function round($value, $precision = 0);
105 }
Interface ilMathAdapter.
sub($left_operand, $right_operand, $scale=null)
Subtracts two numbers.
sqrt($operand, $scale=null)
Gets the square root of a number.
comp($left_operand, $right_operand, $scale=null)
Compares two numbers.
equals($left_operand, $right_operand, $scale=null)
Checks whether or not two numbers are identical.
applyScale($left_operand, $scale=null)
add($left_operand, $right_operand, $scale=null)
Adds two numbers.
pow($left_operand, $right_operand, $scale=null)
Raises a number to another.
mul($left_operand, $right_operand, $scale=null)
Multiplies two numbers.
round($value, $precision=0)
div($left_operand, $right_operand, $scale=null)
Divides two numbers.
mod($left_operand, $right_operand)
Gets modulus of two numbers.