Quote:
|
Originally Posted by xeroblood
@MistaGee:
I understand BitWise operations fully
|
sorry bout that d00d
Quote:
|
Originally Posted by xeroblood
the question I had (way back then) was not "Why is the number 1023", but more like "Why do we even need keys there, when the show_menu() function ultimately ignores them and uses its own keys anyway"...
|
isn't life one big question? :]
Quote:
|
Originally Posted by xeroblood
(Nice explanaition tho! But you didn't explain the math to them! ;))
|
Here it comes:
To get a decimal number out of a binary do the following:
for example: 1101010
decimal = 1*2^7 + 1*2^6 + 0*2^5 + 1*2^4 + 1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 26
or just ask your calc.exe in scientific mode (can be switched via menu "View")
__________________