hexadecimal decimal ----------- ------- 0 0 (zero) 0x1 1 (one) 0x2 2 (two) 0x3 3 (three) 0x4 4 (four) 0x5 5 (five) 0x6 6 (six) 0x7 7 (seven) 0x8 8 (eight) 0x9 9 (nine) 0xA 10 (ten) 0xB 11 (eleven) 0xC 12 (twelve) 0xD 13 (thirteen) 0xE 14 (fourteen) 0xF 15 (fifteen) 0x10 16 (sixteen) 0x11 17 (seventeen)
In C++, hexadecimal numbers are preceded by 0x (zero, x).
Once again we can use the same method to translate a number from a base to another one:
No comments:
Post a Comment