Post: How to convert any digit into binary
03-23-2013, 04:36 PM #1
Complete Speed
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); this is how to convert digits into binary

this is without using a magic calculator

skills/items needed:
1. a calculator
2. a number
3. just logic
4. (optional) a notepad or piece of paper and pencil to write the 1's and 0's down

TUTORIAL
so let's say this is our digit:
69

what you do is divide 69 by 2
which on a calculator will give you
34.5

what you do is you take the .5 part and that is your one basically this chart
xx.5 = 1
xx.0 = 0
xx.0 = 0
xx.6 = 1
etc etc.

basically
if the quotient is a whole number = 0
if the quotient is a number with a remainder = 1

so now that you may understand that

what you do now is take the quotient we had from 69/2
34.5

and divide the whole number excluding the remainder by two

34/2 which equals 17

now we have two quotients
34.5 = 1
17 = 0
basically record the remainder as 1 and the whole numbers as 0

so then we divide 17/2 which equals
8.5 = 1
then 8/2
4 = 0

4/2 which equals 2
so
2 = 0
then

2/2 which equals 1

1 = 0

1/2 which equals 0.5
0.5 = 1

0/2 which equals 0
0 = 0
so the final result if you're still with me will be
10100010

then you reverse this

01000101
and that is your answer

don't believe me?
You must login or register to view this content.

so in review

Step 1: Divide the number you want to convert by 2
Step 2: Record the remainder. If there's no remainder, write down 0. If there is a remainder, write down 1.
Step 3: Divide the resulting whole number by 2
Step 4: Repeat the process until you divide 0/2, this is the last answer
Step 5: At the end of the process, just reverse the 1's and 0's and you have your answer.

now you know how to convert decimals to binary using the division method.

what's the use of this?
well you're in the computer programming section. so i'm just showing you how computers speak pretty much in a way that is a little more easy to read.

maybe you can also use this for any class you may take in computers.
(adsbygoogle = window.adsbygoogle || []).push({});
03-23-2013, 05:54 PM #2
Pichu
RIP PICHU.
You can also do this:


You have your chart doing the following: 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

You have the number 100. Figure out which one 100 goes into and subtract.

128, 64, 32, 16, 8, 4, 2, 1
0, 1, 1, 0, 0, 1, 0, 0

The outcome is now, 01100100

100-64 = 36
36 - 32 = 4
4 - 4 = 0

If the number you have is larger or equal to the value you are subtracting on the chart, then it equals 1, if it is less than then it is 0 and move on.

* Note: Byte = 8 bits.
03-24-2013, 02:28 AM #3
Originally posted by Pichu View Post
You can also do this:


You have your chart doing the following: 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

You have the number 100. Figure out which one 100 goes into and subtract.

128, 64, 32, 16, 8, 4, 2, 1
0, 1, 1, 0, 0, 1, 0, 0

The outcome is now, 01100100

100-64 = 36
36 - 32 = 4
4 - 4 = 0

If the number you have is larger or equal to the value you are subtracting on the chart, then it equals 1, if it is less than then it is 0 and move on.

* Note: Byte = 8 bits.


This way seems easier to remember. Good info.
03-24-2013, 02:58 AM #4
Complete Speed
Do a barrel roll!
Originally posted by Pichu View Post
You can also do this:


You have your chart doing the following: 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

You have the number 100. Figure out which one 100 goes into and subtract.

128, 64, 32, 16, 8, 4, 2, 1
0, 1, 1, 0, 0, 1, 0, 0

The outcome is now, 01100100

100-64 = 36
36 - 32 = 4
4 - 4 = 0

If the number you have is larger or equal to the value you are subtracting on the chart, then it equals 1, if it is less than then it is 0 and move on.

* Note: Byte = 8 bits.


i've never liked the subtraction method my professor taught us it a while back, but i've always found the division method easier

divide by two remainder = 1 no remainder = 0 then flip
but yeah it all depends on what way makes the most since to you.
03-24-2013, 03:16 AM #5
Pichu
RIP PICHU.
Originally posted by another user
This way seems easier to remember. Good info.


Originally posted by Complete
i've never liked the subtraction method my professor taught us it a while back, but i've always found the division method easier

divide by two remainder = 1 no remainder = 0 then flip
but yeah it all depends on what way makes the most since to you.


Both are efficient and work. Doesn't matter which one is used.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo