Introduction
Do you remember the algorithm used to convert from one base to another (in fact, the algorithm that we mostly use to convert from decimal to any other base)?, if not, well, suppose you want to convert the decimal number 18 to binary, you simply divide the number by the base until the quotient is less than or equal to the base, then you read the result from right to left, for example:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
reading from right to left | ||||||||||||||||||||||||||||||||||||||||||||||||||||
(18)10 = (10010)2 |
No comments:
Post a Comment