PDA

View Full Version : How do hexadecimal numbers or whatever work?



Peter_20
05-07-2007, 03:35 PM
I recently learned that 65535 equals to FFFF in hexadecimal numbers or something; could you please tell me more on the subject?
How does it work?

Jowy
05-07-2007, 03:40 PM
When in doubt, ask the <a href=http://en.wikipedia.org>giant brains.</a>

Peter_20
05-07-2007, 04:11 PM
When in doubt, ask the <a href=http://en.wikipedia.org>giant brains.</a>Huh?
I don't understand.

bipper
05-07-2007, 04:38 PM
When in doubt, and lost in that doubt, the giant brains will even direct the feeble minded to the appropriate node. (http://en.wikipedia.org/wiki/Hexidecimal)

A better response, quoted from wiki - In mathematics and computer science, hexadecimal, base-16, or simply hex, is a numeral system with a radix, or base, of 16, usually written using the symbols 0–9 and A–F, or a–f. For example, the decimal numeral 79, whose binary representation is 01001111, is 4F in hexadecimal (4 = 0100, F = 1111). IBM introduced the current hexadecimal system to the computing world; an earlier version, using the digits 0–9 and u–z, had been introduced in 1956, and had been used by the Bendix G-15 computer.

Well yeah, this is the basics. There are different systems of using hex. the wiki article seems to cover enough of em. lol

Peter_20
05-07-2007, 04:42 PM
I hope this forum isn't turning into t3h sarcasm headquarters now. :eep:

Oh well, thanks, I guess. :choc2:

bipper
05-07-2007, 04:46 PM
never.

Hex is simple you just count liek this:
1234567890ABCDEF
normally you would say:
12345678910111213141516


65535 equals to FFFF == false

Captain Maxx Power
05-07-2007, 06:15 PM
Hex is simple you just count liek this:
1234567890ABCDEF

Actually it's 0123456789ABCDEF. Hex is present because it's an organised way of representing groups of bits, specifically groups of four bits, since all zero's = 0 and all 1's are equal to F. If you had five bits it would have to go up to and past Z to represent it, and with three bits you need only go as far as 8 (which coincidentally there is a representation for in the form of Octagonal numbers which are Base-8).

bipper
05-07-2007, 07:06 PM
Hex is simple you just count liek this:
1234567890ABCDEF

Actually it's 0123456789ABCDEF.
:D thanks, I do that all the time. Working with a BPM that counts it thusly: 1234567890abcdef; so now I am scarred for life.

It is like those lovely VB6 engineers who think array's start with 1 :confused:

sides, it is all about the aquadrosexagesimal AKA, programmer foursomes.

Peegee
05-07-2007, 08:37 PM
You know how you count in base 10 (10, 100, 1000)

well in Hex you count in base 16 (16 , 32, 48, 64, etc)

ok?

Since there's no 16 since digits (0123456789) they have to add alphabets (0123456789ABCDEF)

So that's how hex works.

Renmiri
05-07-2007, 10:59 PM
position 0 + 16 x position 1 + 16x16 x position 2...

255 will be
= 2 x 16 x 16 + 5 x 16 + 5
= 512 + 80 + 5
= 597

the same goes for numbers with more than 3 digits
4th digit x 16 x 16 x 16
5th digit x 16 x 16 x 16 x 16

so on...

Roogle
05-07-2007, 11:42 PM
How do you know about the hexadecimal system, Renmiri? It doesn't sound like a motherly thing to know.

Tavrobel
05-07-2007, 11:46 PM
How do you know about the hexadecimal system, Renmiri? It doesn't sound like a motherly thing to know.

Sound like a basic understanding, it seems.

Also known as Base-16. (http://en.wikipedia.org/wiki/Hexadecimal)

Captain Maxx Power
05-08-2007, 01:13 AM
It is like those lovely VB6 engineers who think array's start with 1 :confused:

Delusional little buggers that they are. :cool:

rubah
05-08-2007, 03:09 AM
You didn't find a certain hexadecimal number that starts with 09 and ends with F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0?

Christmas
05-08-2007, 03:41 AM
EoFF is turning into a school or something recently. :bigsmile:

Lynx
05-08-2007, 04:55 AM
65536 = FFFF

16 x 16 x 16 x 16 = 65536

hexidecimal jsut reminds me of tetra master

Mirage
05-08-2007, 05:01 AM
How do you know about the hexadecimal system, Renmiri? It doesn't sound like a motherly thing to know.
She used to work for Motorola :p

Odaisé Gaelach
05-08-2007, 03:25 PM
I recently learned that 65535 equals to FFFF in hexadecimal numbers or something; could you please tell me more on the subject?
How does it work?

It doesn't.

Levian
05-08-2007, 03:34 PM
I recently learned that 65535 equals to FFFF in hexadecimal numbers or something; could you please tell me more on the subject?
How does it work?

Is that number special or something? 'cause that's the maximum PM's I'm allowed. I'm like totally freaked out now, it's like those numbers in Lost. :cry:

Bunny
05-08-2007, 03:45 PM
They equal 24 which is the number of hours in a day and also a popular television show on Fox. 2 + 4 = 6, the first number in the series!

CONSPIRACY!

bipper
05-08-2007, 04:28 PM
it is the largest number that can be represented in binary countin - i think. So in that case 65535 is to binary what FFFFFF is to hex.

edit: That is prolly why max PMS are at that number levi. Programmers always run into that number on more structured (and powerful ) languages. This does not include VB developers. They are not programmers. :cool:

rubah
05-08-2007, 11:51 PM
2^16 is 65536, so 65535 is the largest number you can store in two bits. 15 to store the digits and 1 to store the information about the file.

Tavrobel
05-09-2007, 12:15 AM
65535

Is that number special or something? 'cause that's the maximum PM's I'm allowed. I'm like totally freaked out now, it's like those numbers in Lost. :cry:

Yes. It's 256*256-1, or 2^16, while 256 is 2^8.

Renmiri
05-09-2007, 01:28 AM
How do you know about the hexadecimal system, Renmiri? It doesn't sound like a motherly thing to know.

This mother is an Electronics Engineer on sabbatical :p


She used to work for Motorola :p

:D Before kids :D

Mirage
05-09-2007, 11:40 AM
2^16 is 65536, so 65535 is the largest number you can store in two bits. 15 to store the digits and 1 to store the information about the file.

Are you sure you're not thinking of two bytes? Because the maximum 2-bit value is 4. 2˛ :p.

Firo Volondé
05-09-2007, 02:21 PM
6*9 = 42... in Base 13. Anyone who knows why I said that gets a cookie.

Mirage
05-09-2007, 02:48 PM
Gimme the cookie then.

crono_logical
05-09-2007, 07:20 PM
I like the Base-Π number system :p

Renmiri
05-09-2007, 08:49 PM
6*9 = 42... in Base 13. Anyone who knows why I said that gets a cookie.

4 x 13 + 9 = 54

6 * 9 = 54

:monster: Coookie!!!

bipper
05-09-2007, 08:54 PM
Life was just binary until women came along :greenie:

Peegee
05-10-2007, 12:39 AM
I like the Base-Π number system :p

Agh clout with his complications.

*brain asplodes*

rubah
05-10-2007, 12:47 AM
2^16 is 65536, so 65535 is the largest number you can store in two bits. 15 to store the digits and 1 to store the information about the file.

Are you sure you're not thinking of two bytes? Because the maximum 2-bit value is 4. 2˛ :p.

Probably. At least I didn't refer to nibbles! or is it nybbles?

Flying Mullet
05-10-2007, 12:52 AM
65535

Is that number special or something? 'cause that's the maximum PM's I'm allowed. I'm like totally freaked out now, it's like those numbers in Lost. :cry:
Just remember that 2^x are special numbers in computing; 2, 4, 8, 16, 32, 64, 128, etc... That way they won't scare you again. ;)