July 2018
Beginner
202 pages
5h 4m
English
Number systems have different bases. Decimals numbers with a base of ten are what most of us are familiar with. Computers, on the other hand, use only ones and zeros (binary). Let's try to write some code that converts binary numbers to decimals.
Specifically, we want to develop an algorithm that accepts a string containing ones and zeros and returns an integer.
We can convert the binary string by following these steps:
Read now
Unlock full access