I was working on my binary clock and realized I need a way to quickly convert binary 0-60 without going through the whole 1*2^3+1*2^1 + ...... or else it would make my clock pointless.
This formula works for any number from 0-63. I am certain there is another likewise simple equation for numbers with more bits, and maybe this topic will challenge you guys to determine it.
Say you have a 6 bit binary number ABCDEF where A is the MSB and F is the LSB.
To convert to base 10, you do the following.
((ABC in base 10)*8) +(DEF in base 10).
All it requires you to remember is binary numbers 0-7, and most people can already do that.
So okay, now figure out a formula for 8 bits. Go!!!!
This formula works for any number from 0-63. I am certain there is another likewise simple equation for numbers with more bits, and maybe this topic will challenge you guys to determine it.
Say you have a 6 bit binary number ABCDEF where A is the MSB and F is the LSB.
To convert to base 10, you do the following.
((ABC in base 10)*8) +(DEF in base 10).
All it requires you to remember is binary numbers 0-7, and most people can already do that.
So okay, now figure out a formula for 8 bits. Go!!!!
Last edited: