How to transfer to a binary system

How to transfer to a binary system

The decimal system of notations is that system which we daily face in the most various industries of our life. It is convenient and clear, habitual and easy. But there are also other systems – binary, octal, hexadecimal. Each of them is used in some certain areas. For example, on a binary system operation of all computers is founded on the earth.

Instruction

1. In a binary system only two numbers – 1 and 0 are used, for computers these numbers appear in the form of existence or lack of a charge. Of consecutive alternation of zero and units there are also chains turning as a result into computer teams and files. The binary system is not so difficult as it can seem at first sight, and performance of arithmetic actions is made in it much easier, than in decimal. Each person beginning studying computer science faces a binary system, as exercise it is offered to try to transfer several decimal numbers to a binary system independently. It is absolutely not so difficult as can seem at first sight. Let's consider one of ways.

2. The way which is thought up many centuries prior to the invention of computers by one Ancient Greek mathematician with success is used and today, and it is called Euclid's algorithm. According to this algorithm, for transformation of number from a denary system in binary it is necessary to divide this number into 2, writing out the rest before achievement of zero. But it is always better to explain on an example. Let's take any denary number. For example, 159:159: 2 = 79 (ost. 1) 79: 2 = 39 (ost. 1) 39: 2 = 19 (ost. 1) 19: 2 = 9 (ost. 1) 9: 2 = 4 (ost. 1) 4: 2 = 2 (ost. 0) 2: 2 = 1 (ost. 0) 1: 2 = 0 (ost. 1) We collect binary number from all remains which were at the decision, since the end, as a result at us binary number 100111111 turned out.

3. But the solution of such examples serves only presentation, giving us an idea of that as well as on the basis of what computer systems work. If there is a need of the translation of different numbers from one numeral system in another, it is much simpler to use the special calculator. It can be done, for example, by means of the calculator entering the standard Windows set. It is necessary to pass only on the Look tab from usual to the calculator to engineering and transfer of numbers to a binary system will turn for you into a children's game.

Author: «MirrorInfo» Dream Team


Print