Me being the computer nerd I am, I decided to combine my love of math and love of computers to come up with a single formula that converts a number from base 2 (binary) numbering to base 10 (decimal) numbering.
There is one thing I would like to note about this formula. Computers think in 8-bit binary and this formula is meant to be used with the binary numbering system. True binary numbering means thats 1101000101110101 is a valid number (53,621). In 8-bit binary it would break into separate 8-digit sections (bytes) like this: 11010001 01110101. These would represent two separate values (209 and 117) instead of just one.
If anyone has any suggestions on otherways to accomplish this or any imput to add, I would love to hear it.
EDIT: I uploaded 2 .DOCs. One is a full explanation of the binary formula and the other is an explanation of how to isolate a digit in a number if you are given its position in the number.
x = Number in binary
n = Length of that number (how many digits are in it)
![]()




Reply With Quote