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 ?

Recommended Answers

All 6 Replies

They're hexadecimal. 0x is a common prefix for hexadecimal. You'll also see a suffix of h. But the telltale sign is letters.

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

Ok thanks !
But when i write them in a hex editor, i get only dots

That's because values like 0x0001 and 0x012 are not printable characters.

See this. Printable character are basically 0x0020 to 0x007E.

Ok that was helpful

You can use calc in windows, when you set it up to scientific view, then click on the button to set it to hex (Hexadecimal) mode, then you can type these numbers, ignoring 0x and any preceding zeroes starting with the first numbre different to zero, change setting to Centesimal mode and see how the numbre you typed changes to it's decimal value.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.