ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilMathAdapter.php
Go to the documentation of this file.
1<?php
2
24{
32 public function add($left_operand, $right_operand, ?int $scale = null);
33
41 public function sub($left_operand, $right_operand, ?int $scale = null);
42
50 public function mul($left_operand, $right_operand, ?int $scale = null);
51
60 public function div($left_operand, $right_operand, ?int $scale = null);
61
69 public function mod($left_operand, $right_operand);
70
78 public function pow($left_operand, $right_operand, ?int $scale = null);
79
86 public function sqrt($operand, ?int $scale = null);
87
88
96 public function comp($left_operand, $right_operand, ?int $scale = null);
97
105 public function equals($left_operand, $right_operand, ?int $scale = null): bool;
106
113 public function applyScale($left_operand, ?int $scale = null);
114
118 public function round($value, int $precision = 0): string;
119}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
mul($left_operand, $right_operand, ?int $scale=null)
Multiplies two numbers.
mod($left_operand, $right_operand)
Gets modulus of two numbers.
comp($left_operand, $right_operand, ?int $scale=null)
Compares two numbers.
div($left_operand, $right_operand, ?int $scale=null)
Divides two numbers.
round($value, int $precision=0)
equals($left_operand, $right_operand, ?int $scale=null)
Checks whether or not two numbers are identical.
add($left_operand, $right_operand, ?int $scale=null)
Adds two numbers.
applyScale($left_operand, ?int $scale=null)
This method adapts the behaviour of bcscale()
sub($left_operand, $right_operand, ?int $scale=null)
Subtracts two numbers.
sqrt($operand, ?int $scale=null)
Gets the square root of a number.
pow($left_operand, $right_operand, ?int $scale=null)
Raises a number to another.