rendered paste body11.09.05
Datateknik.
Different numeral systems. Binary.
23(dec)imal or 23(10)
binary decimal octal hexadecimal
A hex number always corresponds to a group of 4 binary numbers.
1 2 4 dec
0 0 0 = 0
1 0 0 = 1
0 1 0 = 2
1 1 0 = 3
0 0 1 = 4
1 0 1 = etc.
0 1 1
1 1 1
0 0 0
1 0 0
0 1 0
1 1 0
^ ^ ^
^ ^ 000011110000} 8
^ 001100110011} 8
010101010101} 8
Most Significant Bit MSB and negative powers for decimal point numbers after the decimal point.
Two's complement notation.
Vice versa from pos to neg and neg to pos