(E7.5A)16 = ( )2
规则:1位变4位,各位转换。原理是:先把16进制数转换成10进制数,再按照10->2进制的转换方法转为2进制数。
转换结果:(E7.5A)16 = ( 1110 0111.0101 1010 )2
逐位转换方法:写出每一位十六进制数所对应的十进制数,将此十六进制数按十进制数转换成二进制数的方法进行转换得出每位十六进制数所对应的二进制数
int a = 100; // Decimal
int aOctal = 0100; // Octal
int aHex = 0x100; // Hex