Welcome to Gaia! ::

Reply Off-Topic
3000th post Goto Page: [] [<] 1 2

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

Hermonie Urameshi
Crew

Conservative Explorer

6,550 Points
  • Autobiographer 200
  • Alchemy Level 1 100
  • Guildmember 100
PostPosted: Wed May 16, 2007 11:37 am


Xeigrich
Eccentric Iconoclast
Too late now. gonk

Base 16 is no less viable than base 10, though. And base 10 often gives me as much trouble as base 16.

How does one convert between the two?


It's quite simple, but takes a good bit of math.

Hexadecimal to Decimal is the easiest... You multiply each place value by its respective multiple of 16. The pattern goes from right to left like so:

<-.../4096/256/16/1


That's just (in reverse order) 16^0, 16^1, 16^2, 16^3 and so on. So for a hex number like C3F...

1) F = 15... 15 x 1 = 15
2) 3 = 3... 3 x 16 = 48
3) C = 12... 12 x 256 = 3072
4) 3072 + 48 + 15 = 3135 Decimal

Decimal to Hex -- what anyone would have to do when speaking Aquenandi -- is a lot harder because you have to divide and take remainders. But luckily you only divide by 16 each time. An example for converting the decimal number 1735 to hex:

1) 1735 / 16 = 108 r 7 (...7)
2) 108 / 16 = 6 r 12... 12 = C (...C7)
3) 6 / 16 ... Just use 6 (6C7)
4) Tada! Your hex number is 6C7

The easiest way to find remainders using a calculator is to use the Modulus (%) operator. It works like the normal division operator, only it returns the whole number Remainder (x/16 in this case) instead of the Quotient with decimal remainder. To really convert hex by calculator, you have to make good use of both, but it can be done by hand if you don't mind long division. If you can't use the modulus operator, then when you divide the main number by 16 and get a decimal fraction (ie 108.4375) just multiply 16 by the decimal remainder (ie 0.4375) and you get the whole number remainder(ie 7).

And thus I have proven, to a certain extent, the severity of my nerdity.


I'm confused...

二〇←That looks more like an emote. xd
PostPosted: Wed May 16, 2007 3:35 pm


Eccentric Iconoclast
Let me see if I've got this right - 87 becomes 57 in Hex?


Precisely!

khalaria


Eccentric Iconoclast
Captain

PostPosted: Thu May 17, 2007 6:15 am


Yay, I got something right!
PostPosted: Thu Apr 22, 2010 12:57 am


The system used get's a bit fancy.
The digits bellow contract into the digits above in their numbering system.

20
2
b


asdfasdf22

Reply
Off-Topic

Goto Page: [] [<] 1 2
 
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
//
//

// //

Have an account? Login Now!

//
//