Possible Duplicate:
Why are Hexadecimal Prefixed as 0x?
Memory addresses are often notated as a hexidecimal value prefixed with 0x. E.g:
> new.env()
<environment: 0x21d36e0>
Does the 0x part mean anything? Where does this notation come from? Is any other value possible instead of 0x?
The
0xis just a notation to let you know the number is in hexadecimal form.Same as you’d write
042for an octal number, or42for a decimal one.So –
42 == 052 == 0x2A.