# Converting numbers to binary

GHOSTRIDER2016
Posts:

**35**Member ■■□□□□□□□□
Guys,

When it comes to converting numbers to binary i read that you keep dividing the number by 2 and any remainders just come out as 1 so imagine that the number 500 in binary is

500/2 = 250 = 0

250/2 = 125 = 0

125/2 = 62.5 = 1 (reminder)

62.5/2 = 31.2 =1

31.2/2 = 15 = 1

etc you keep dividing until you have no more numbers to divide and the number will be from bottom to top is this correct ?

Many thanks

When it comes to converting numbers to binary i read that you keep dividing the number by 2 and any remainders just come out as 1 so imagine that the number 500 in binary is

500/2 = 250 = 0

250/2 = 125 = 0

125/2 = 62.5 = 1 (reminder)

62.5/2 = 31.2 =1

31.2/2 = 15 = 1

etc you keep dividing until you have no more numbers to divide and the number will be from bottom to top is this correct ?

Many thanks

0

#### Welcome!

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

## Quick Links

#### Categories

- 109.3K All Categories
- 78 Welcome Center
- 12 Announcements
- 2 Forum Rules of Engagement
- 36 Introduce Yourself
- 27 TechExams Support
- 87.1K Certification Preparation
- 129 Check Point: CCSA & CCSE
- 32.7K Cisco
- 21.5K CCNA & CCENT
- 367 CCDA & CCDP
- 8.9K CCNP
- 1.7K CCIE
- 383 Cloud Certifications
- 142 Amazon Web Services (AWS)
- 6 Azure
- 96 CCSP
- 73 Cloud+ & Cloud Essentials
- 15.3K CompTIA
- 5K A+
- 217 CASP+
- 79 CySA+
- 960 Linux+
- 4.4K Network+
- 20 PenTest+
- 259 Project+
- 3.8K Security+
- 327 Server+
- 248 Other CompTIA Certifications
- 1.2K EC-Council
- 582 CHFI
- 593 CEH
- 1.3K GIAC
- 22 IAPP
- 933 ISACA
- 5 CRISC
- 254 CISA
- 665 CISM
- 4.1K (ISC)²
- 558 CISSP
- 31 CSSLP
- 3.5K SSCP
- 916 Juniper
- 712 LPI, Red Hat & Linux Foundation
- 18.5K Microsoft
- 128 MCSA 2016 / MCSE 2016
- 157 Windows 10 exams
- 139 Windows 8 exams
- 1.4K Windows 7 exams
- 1.6K MCSA / MCSE on Windows 2012 General
- 2.3K MCTS / MCITP on Windows 2008 General
- 828 Exchange Server & Office Communications Server Exams
- 528 Other Microsoft Electives
- 349 MCSA/MCSE: Security
- 299 Microsoft Developers Certifications
- 482 SQL Server exams
- 133 Offensive Security: OSCP & OSCE
- 2K Other Security Certifications
- 324 Virtualization Certifications
- 231 Citrix Certifications
- 87 VMware
- 1.8K Other Certifications
- 385 CWNP Certifications
- 854 ITIL Certifications
- 213 Project Management Certifications
- 84 Apple Mac OS X Certifications
- 62 Novell Certification
- 81 Oracle Certifications
- 52 Sun Microsystems Java Certification
- 112 Storage Certifications
- 6.6K General Certification
- 17.4K Education & Development
- 19 Colleges & Schools
- 24 Educational Resources
- 17.4K IT Jobs / Degrees
- 23 Professional Development
- 47 Cybersecurity
- 2 Cloud Security & IoT
- 7 OWASP
- 15 Security Awareness & Training
- 16 Security News & Breaches
- 19.8K General
- 2 Conferences & Events
- 8 Computer Gaming
- 1 Data Center
- 24 Classifieds
- 16 For Sale
- 2 Wanted (ISO)
- 6 Help Wanted
- 6 Just for Fun
- 17.4K Off-Topic
- 4 Scripting
- 1 Show Us Your Tech!
- 4 Troubleshooting
- 2.4K Virtualization

## Comments

6Member ■□□□□□□□□□500/2 = 250, 500%2 = 0 -> 0

250/2 = 125, 250%2 = 0 -> 0

125/2 = 62, 125%2 = 1 -> 1

62/2 = 31, 62%2 = 0 -> 0

31/2 = 15, 31%2 = 1 -> 1

15/2 = 7, 15%2 = 1 -> 1

7/2 = 3, 7%2 = 1 -> 1

3/2 = 1, 3%2 = 1 -> 1

1/2 = 0, 1%2 = 1 -> 1

Now you take the numbers and work your way from bottom up, in this case 500(base10) is 111110100(base2).

If you think back to grade school before you knew what decimals and fractions were you were probably taught intger division with the R for remainder notation, it's the exact same concept here. You can _only_ have a remainder of 1 or 0 when dividing by 2 and that remainder is what gives you the value in the new base. I'm sorry if I am explaining this oddly, but it's much easier to just work through one or two. This works for other bases as well (e.g. you can convert a number from base 10 to base 8 by dividing by 8 and using the remainders for the new digits)

I guess the important thing is don't use 62.5 in your next operation, use 62. Don't look at 125/2 as 62.5 think of it as 62R1 and the R1 is what gives you the binary digit (or bit) for that field and 62 is what you bring forward (the next bit is a 0 since 62/2 = 31R0 which is where you went wrong).

538Member ■■■■□□□□□□Being math challenged, I'm having trouble following this. I learned a different way which makes sense, even with my trouble with numbers.

## 'My dear you are ugly, but tomorrow I shall be sober and you will still be ugly' Winston Churchil

2,663Mod Mod35Member ■■□□□□□□□□35Member ■■□□□□□□□□I got scared when

CryptrotTheWarlockposted this it was like wow my brain is about to blow up