1. 二进制 437 = 4*10^2 + 3*10^1 + 7*10^0 1011 = 1*2^3 + 0*2^2 + 1*2^1 + 1*2^0 = 11 十进制转二进制 正常方法 19 / 2 % 1 73 / 2 % 1 9 / 2 % 1 36 / 2 % 0 4 / 2 % 0 18 / 2 % 0 2 / 2 % 0 9 / 2 % 1 1 = 1 从后往前: 19(10) = 10011(2) 4 / 2 % 0 2 / 2 % 0 1 = 1 73(10) = 1001001(2) 快速方法 1 1 1 1 1 1 1 1 2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0 128 64 32 16 8 4 2 1 100 = 64 + 36 = 64 + (32 + 4) = 0 1 1 0 0 1 0 0 35 = 32 + 3 = 32 + (2 + 1) = 0 0 1 0 0 0 1 1 84 = 64 + 20 = 64 + (16 + 4) = 0 1 0 1 0 1 0 0 2. 十六进制 hex 0-1-2-3-4-5-6-7-8-9-A(10)-B(11)-C(12)-D(13)-E(14)-F(15) 16进制转10进制 AF(H) = 10*16^1 + 15*16^0 = 160 + 15 = 175(10) 10进制转16进制 19(10) / 16 % 3 88(10) / 16 % 8 1 = 1 从后往前: 19(10) = 13(H) 5 = 5 88(10) = 58(H) 快速方法 43(10) = 32 + 11 = 16^2 + B = 2B(H) 16进制转2进制 7E(H) = 7(0111)E(8 + 4 + 2) = 0111 1110(2) 9D(H) = 9(1001)D(8 + 4 + 1) = 1001 1101(2)