Jul-21-2018, 03:13 PM
(This post was last modified: Jul-21-2018, 03:13 PM by gontajones.)
0b
indicates that the number is in a binary representation and 0x
in a hexadecimal representation.>>> 0b011 3 >>> 0x011 17 >>>011 in binary is: 2²*0 + 2¹*1 + 2⁰ * 1 = 3 (decimal)
011 in hexa is: 16²*0 + 16¹*1 + 16⁰ * 1 = 17 (decimal)