Simple Calculator

Addition, subtraction, multiplication, (modular) division (a o bc).
Decimal number converted to hexadecimal, octal or binary (ac).
Hexadecimal, octal or binary number converted to decimal (ac).

a :
b :
c :



Сабирање, одузимање, множење, (модуларно) дељење (a o bc).
Децималне бројеве у хексадецималне, окталне или бинарне (ac).
Хексадецималне, окталне или бинарне у децималне (ac).

Бинарне цифре су {0, 1}, а окталне {0, 1, 2, 3, 4, 5, 6, 7},
децималне {0, 1, 2, ..., 9} и хексадецималне {0, 1, 2, ..., 9, A, B, C, D, E}.

На пример, хексадецимално A, B, C, D, E декадно је 10, 11, 12, 13, 14,
а 25C хексадецимално је 2×162 + 5×16 + 12·1 = 604 декадно.

Декадни број 604 је октални број 1134. Наиме:
604 подељено са 8 је 75 са остатком 4 (604 DIV 8 = 75.5 и 604 MOD 8 = 4),
75 подељено са 8 је 9 са остатком 3 (75 DIV 8 = 9.375 и 75 MOD 8 = 3),
9 подељено са 8 је 1 са остатком 1 (9 DIV 8 = 1.125 и 9 MOD 8 = 1),
1 подељено са 8 је 0 са остатком 1 (1 DIV 8 = 1.125 и 9 MOD 8 = 1),
а остатке пишемо редом 1134 и то је октални запис декадног 604.

Number Systems

Digits of the binary sistem are {0, 1}, of the octal {0, 1, 2, 3, 4, 5, 6, 7}, then
decimal {0, 1, 2, ..., 9}, and
hexadecimal {0, 1, 2, ..., 9, A, B, C, D, E}.

For example, hexadecimal A, B, C, D, E is decimal 10, 11, 12, 13, 14,
and 25C hexadecimal is
2×162 + 5×16 + 12·1 = 604 decimal.

The decimal number 604 is the octal number 1134. Namely:

604 divided by 8 is 75 with the remainder 4
(604 DIV 8 = 75.5 and 604 MOD 8 = 4),

75 divided by 8 is 9 with the remainder 3
(75 DIV 8 = 9.375 and 75 MOD 8 = 3),

9 divided by 8 is 1 with the remainder 1
(9 DIV 8 = 1.125 and 9 MOD 8 = 1),

1 divided by 8 is 0 with remainder 1
(1 DIV 8 = 1.125 and 9 MOD 8 = 1),

and the remains are written in the order of 1134 and it is an octal record of the decimal 604.