Converting decimal value 226 to binary

In the tutorial How to Convert from Decimal to Binary Shortly & Efficiently? we discuss about the converting methods from decimal to binary. In this tutorial, we will discuss this with an example.

In this tutorial, we have to convert decimal value 226. First, we have to check which is greater weighted value of 226. But here we see, 128 is the highest value and so we choose 128 and put a binary 1 there. We also subtract the weighted value form the decimal value and get the result (226-128) = 98.

Convert Decimal 226 to Binary Step 1

The value 128 is bigger than 98 and so we choose 64 as it is just immediate of the higher value and put a binary 1 to that value. Now, we subtract that weighted value to get the result (98-64) = 34.

Convert Decimal 226 to Binary Step 2

Now, we need to compare 34 with the weighted bit position value and find 64 is the closest greater value with it. And so we choose 32 and put a binary 1 to that place. Later we subtract and get the result (34-32)=2.

Convert Decimal 226 to Binary Step 3

Now, we have the value 2 and we need to find just the immediate bigger value of 2 and get the value 4. So, we have to choose the weighted bit value position just before that and we get 2 and put binary 1 to that position. Now, we subtract and get the result = (2-2)=0.

Convert Decimal 226 to Binary Step 4

After doing the above steps, we get 0 lastly. So, we are now ready to put binary 0 to rest of the blank bit positions and finally we put binary 0 to those bits position.

Convert Decimal 226 to Binary Step 5

Doing the above steps, we can do easily convert the decimal value 226 following the above steps.

Final result,

  • Decimal value = 226

  • Binary value = 11100010

More Example to convert from decimal to binary:

No comments:

Post a Comment