English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how do I convert base 10 numbers to Hexadecimals with out counting them one Hexadecimal at a time???

example

6 X A = ???

A is 10 in Hexadecimals so

6 X 10 = 60

and 60 in Hexadecimals is what???

Pls help me

2006-11-29 17:09:53 · 5 answers · asked by wata_tempora 1 in Computers & Internet Programming & Design

5 answers

Why, you need to do this all in your head?

I'll teach you a trick going from base 10 to hexadecimal... Go binary first.

For example: 60 in binary is... let's see, 1,2,4,8,16,32
1 => 32
1 => 16
1 => 8
1 => 4
0 => 2
0 => 1

32+16+8+4 = 48+8+4 = 60

So the answer is 111100

The trick in coverting Binary to Hex is divide them up into groups of 4. In this case, append some 0's in front, so you get 0011 1100

0011 = 3h
1100 = 12, or Ch

so your answer is 3Ch

Double checking the math... 3x16+12 = 48 + 12 = 60 Yep, right answer.

2006-11-29 17:22:47 · answer #1 · answered by Kasey C 7 · 0 0

it's just another number system

60 is a Hex 3C , basically take 60 and divide by 16

60 / 16 = 3 with a remainder of 12

12 = C in hex so there you go 3C.

The idea is based on the "base" system you are working in "Base 16" is Hex.

In the Decimal system multiples of 10 are important
1
10
100
1000
10000
100000 etc. each represents another "place" taken up , the same is true in hexidecimal
Hex = Decimal equivalent
1 = 1
10 = 16
100 = 256
1000 = 4096
10000 = 65536 and so on

So for example to convert 542 from decimal to hex do the following

Start by using the next smallest number to what your target number is
so divide 542 by 256 and you get 2 with some remainder
256 * 2 = 512
542 - 512 = 30
divide 30 by the next smallest hex number and you get
30 / 16 = 1 with a remainder
16 with a remainder of 14 which is a E in Hex
so 542 in decimal is 21E in hex

If you have PC, try going into start -> Programs -> Accessories -> Calculator - then select scientific and presto - Hexidecimal to Decimal calculator.

2006-11-29 17:33:00 · answer #2 · answered by Mark T 7 · 1 0

You can also use the Windows calculator to do the conversion for you. Go to View and select Scientific. Then type in a number under Dec and click on Hex and you will get the number in Hexadecimal.

If you want to do it by hand, then you can refer to this site.

http://en.wikipedia.org/wiki/Hexadecimal

2006-11-29 17:20:06 · answer #3 · answered by techman2000 6 · 0 1

Divide your number by 16. The remainder is going to be your rightmost number. the number of times 16 goes into your decimal number is the leftmost number. If it's larger than 16, repeat the process.

2006-11-29 17:14:55 · answer #4 · answered by Chris S 5 · 0 1

60/16=Quotient :3 Reminder:12
hex of 12 is c
Ans is 3c

2006-11-29 18:02:31 · answer #5 · answered by lib s 1 · 0 0

fedest.com, questions and answers