didn't understand these numbers
Hi everybody,
First, i posted this here because i don't know what this is.
Numbers like these : 0x000 0x010 0x011 0x040 0x0C1 0x200 0x181
What are they ?
binary ?
Thanks
Karlwakim
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 27
Solved Threads: 2
If you have computer with Python you can have it show the binary and decimal versions easily:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> for a in 0x000, 0x010, 0x011, 0x040, 0x0C1, 0x200, 0x181:
print "{0:024b} {0:03x} {0:04}".format(a)
000000000000000000000000 000 0000
000000000000000000010000 010 0016
000000000000000000010001 011 0017
000000000000000001000000 040 0064
000000000000000011000001 0c1 0193
000000000000001000000000 200 0512
000000000000000110000001 181 0385
pyTony
pyMod
5,358 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
Ok thanks !
But when i write them in a hex editor, i get only dots
Karlwakim
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 27
Solved Threads: 2
That's because values like 0x0001 and 0x012 are not printable characters.
See this . Printable character are basically 0x0020 to 0x007E.
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
Karlwakim
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 27
Solved Threads: 2