254/16=15 餘數14,十六進位制形式E,二進位制形式1110
15/16=0 餘數15,十六進位制形式F,二進位制形式1111
254d=FEh=11111110b=011111110b=376o
每3位二進位制數轉換成1位八進位制數:000~111 <=> 0~7:
000 <=> 0
001 <=> 1
010 <=> 2
011 <=> 3
100 <=> 4
101 <=> 5
110 <=> 6
111 <=> 7
每4位二進位制數轉換成1位十六進位制數:0000~1001 <=> 0~9,1010~1111 => A~F
0000 <=> 0
0001 <=> 1
0010 <=> 2
0011 <=> 3
0100 <=> 4
0101 <=> 5
0110 <=> 6
0111 <=> 7
1000 <=> 8
1001 <=> 9
1010 <=> A
1011 <=> B
1100 <=> C
1101 <=> D
1110 <=> E
1111 <=> F
254/16=15 餘數14,十六進位制形式E,二進位制形式1110
15/16=0 餘數15,十六進位制形式F,二進位制形式1111
254d=FEh=11111110b=011111110b=376o
每3位二進位制數轉換成1位八進位制數:000~111 <=> 0~7:
000 <=> 0
001 <=> 1
010 <=> 2
011 <=> 3
100 <=> 4
101 <=> 5
110 <=> 6
111 <=> 7
每4位二進位制數轉換成1位十六進位制數:0000~1001 <=> 0~9,1010~1111 => A~F
0000 <=> 0
0001 <=> 1
0010 <=> 2
0011 <=> 3
0100 <=> 4
0101 <=> 5
0110 <=> 6
0111 <=> 7
1000 <=> 8
1001 <=> 9
1010 <=> A
1011 <=> B
1100 <=> C
1101 <=> D
1110 <=> E
1111 <=> F