Mathematics Principles V11

Clive W. Humphris

BINARY NUMBERS: Simple Decimal To Binary.  

This example of Decimal to Binary conversion uses whole or integer numbers, later we will go on to look at numbers with decimal parts. The calculation is simple, especially on a computer as it just uses repetitive division; the remainder will always be a 1 or a 0, thereby, generating the binary equivalent.

Remember to read the number from bottom to top. The top is the least significant binary digit.

To ensure the output is always an eight-bit binary number or byte, we insert zeros to the left of the result. This is not essential, it just makes binary numbers easier to compare.

Table of contents

previous page start next page