Skip to content

Arithmetics

Hissab supports following arithmetic operations:

Elementary Operations

Addition, subtractions, multiplications and division

10 + 5
15
10 - 5
5
10 * 5
50
10 / 5
2

Power

10 ^ 5
100,000
10 ** 5
100,000

Percentages

25%
0.25
25% of 200
50
200 + 25%
250
200 - 25%
150
25% off 200
150
25% of what is 200
800

Factorial

5!
120

Remainder / Modulo

10 mod 7
3

Absolute

abs(-232)
232
abs(100 + 30 - 300)
170

Permutation

8 perm 3
336

Combination

8 comb 3
56

Least common multiple

lcm(3,36,60,12)
180

Greatest common divisor

gcd(3,36,60,12)
3

Minimum

min(3,36,60,12)
3
min(1 kg, 1 pound, 100gram)
100 gram

Maximum

max(3,36,60,12)
60
max(1 kg, 1 pound, 100gram)
1 kg

Logarithm

  • log = log with base e
  • loge = log with base e
  • log10 = log with base 10
  • log2 = log with base 2
log 100
4.6052
loge 100
4.6052
log10 100
2
log2 100
6.6439