Computer Science/Binary


Can you please tell me how to convert 1010100101111110B into hexadecimal?


First we have a problem:

This character "B" is NOT binary.

So I will leave that out of this math conversion for the purpose of this answer.

Now if you were in a Math class they would go about division by 16, but here is a trick I learned many years ago:

Binary:    1010 1001 0111 1110          (Now work right to left and break it up in 4 digits:



So now lets break down the Binary to HEX remember:   right to left:  8 4 2 1 =15 MAX
because starting at 0.

0-9 same as decimal

11=A   = 1010
12=B   = 1011
13=C   = 1100
14=D   = 1101
15=E   = 1110
16=F   = 1111

HEX (4 places:  8 4 2 1)

1010  |1001  |0111  |1110
  A          9         7          E     = HEX

Now if you want to learn how to quickly convert to Decimal and Octal let me know, and I will show you: It is EASY!

Hope this helps,

Computer Science

All Answers

Ask Experts


Jeff Laatsch


I can answer programming questions related to: C, C++, PHP, PERL, VB, SQL, ASP, JAVA, JS, XHTML, XML, CSS, PL/SQL, AWK, SED, VI Editor and if I don`t know the answer I have 20+ years systems experience as my resource. I can handle general questions in most areas of computer science including systems integration, API, networking related issues.


An accomplished WEB Master/Developer, Programmer Analyst, Systems Administrator with 12+ years of industry background in full system management and technical hardware/software support expertise including SUN, HP-UX, AIX, LINUX, and Windows NT,Win2000, 2003 with Active Directory: Well rounded in software engineering principles, requirements gathering, analyst, definition, system architectural design, OOA, OOD, UML, SEI-CMM and SDLC: Knowledgeable in Data Warehouse, Data Mart technologies, and experienced working with ORACLE databases utilizing ERP, SQL, PHP, PERL, C, C++, PL/SQL,SQL, JAVA, VB.NET, SOAP and other Dynamic WEB technologies: Analytical thinker and problem solver: Goal oriented professional who has a Masters in Computer Systems with emphasis in computer programming (C++ and Application Development).

City University, WA 12/03
Master of Science in Computer Systems
with Emphasis in Computer programming (C++/App Development)
Chapman University, WA 6/01
Bachelor of Science in Computer Information Systems
Emphasis in Computer networks and security

20+ years of experience in the Computer Science Industry

Awards and Honors
Outstanding Achievement & Special Recognition

©2016 All rights reserved.