*pWp*CL@n*
Latest Topics
Topic
History
Written by
Update May 5, 2012
The fuck, virt?
HBD
Rail Game
My 4 year old, Tayden..
Today at 3:11 am
Yesterday at 5:19 pm
Yesterday at 4:16 pm
Tue May 22, 2012 9:29 pm
Wed May 16, 2012 5:56 pm
Virtuosity
Turtle
EARTH_QUAKE
__Smokey__
__Smokey__

Hex Codes 5 5 1

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Hex Codes on Mon Jul 05, 2010 4:52 am

Virtuosity


Leader
Leader
I thought I would post this here even though it pertained to tads what the hex game posted in the game section.

http://ewebdev.com/html/understanding-color-codes.html

I never understood how it works and I understand a lot more now. Although I got lost in the...

Code:
OK then, what is a Hex value? I'm glad you asked! Your computer stores information as single ones and zeros. Each of these tiny single values is called a "bit". We then combine 8 of these "bits" to make a "byte". So a byte is 8 bits. If you recall from high school math, you can count in various "bases". We normally use base 10 or "decimal", which uses 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 to represent a number. Likewise, if we use the ones and zeros I just mentioned, we're talking about just two possible values for each digit, 0 or 1, and this is called base 2 or "binary". However, in computers, we also use base 16, or hexadecimal (hex for short) because it packs more values into a single space. Hex uses the following digits to represent a number: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. To represent the number 128 in decimal or base 10 takes 3 digits (128), in binary it takes 8 digits (10000000), and in hex or base 16 it takes just 2 digits (80). So by using hex values we save storage space and gain efficiency.


part so if anyone wants to help explain this to me I would appreciate it. Yes I mean break it down into baby talk or retard talk whatever you call it.


__________________________________________________________________________________________

Carry Ryze like a boss!

2 Re: Hex Codes on Mon Jul 05, 2010 12:24 pm

Cap'n jack Sparrow


Im here fairly often!
So like you understand how to count in binary and base 10 right? o.o

3 Re: Hex Codes on Mon Jul 05, 2010 2:04 pm

Virtuosity


Leader
Leader
No, that is the part I got lost. He said remember back in high school with bases but I am not that great at remembering stuff.


__________________________________________________________________________________________

Carry Ryze like a boss!

4 Re: Hex Codes on Tue Jul 06, 2010 1:35 am

Cap'n jack Sparrow


Im here fairly often!
Lol ok lemme see if I can break down the binary and base 10 shit for now

Ok so we learn to count in the base 10 ie

ThousandsHundreds Tens Singles


Another way of expressing this is

10³ 10² 10¹ 10º


As you can see all in the BASE of ten lol

so the number 5948 in this form looks like

10³ 10² 10¹ 10º
5 94 8


5 thousands (5x10³)+
9 hundreds (9x10²)+
4 tens (4x10¹)+
8 singles (8x10º)

Simple right? ( I hope >_<)

Ok well binary operates along the same lines but instead of base 10 we have bases of 2 ie



So lets take the number 23 and express it in binary

2^4 Top Coloumn
16 8 42 1 what the top coloumn equals
1 0 11 1 the number 23 expresses as binary
>>>10111

(1x16)+(8x0)+(4x1)+(2x1)+(1x1) = 16+0+4+2+1 = 23

wrote: 128 in binary it takes 8 digits (10000000)


Sooo this number expressed simply is

2^7 2^62^52^4 2^3 2^2 2^1 2^0
1 0 0 0 0 00 0


so 1 x 2^7 +0+0+0+0+0+0+0 = 128

(use a calculator to work it out if you don't believe me) lol

I hope this helps a little Hex is along the same lines but a little more lol i'll explain it later when I'm not half asleep xD

5 Re: Hex Codes on Tue Jul 06, 2010 3:40 am

Virtuosity


Leader
Leader
Alright I think I somewhat get it. Sad that I haven't got it fully by now especially with numbers I catch on quick. I think I can have one of my friends explain it to me as well Smile


__________________________________________________________________________________________

Carry Ryze like a boss!

6 Re: Hex Codes on Tue Jul 06, 2010 12:53 pm

neko


Quake III Member
Quake III Member
my fu&6ing eyez i dont understand any of that

http://flyff.gpotato.com/

7 Re: Hex Codes on Wed Jul 07, 2010 1:41 am

TheRustySpoon


Quake III Member
Quake III Member
kk
In base 10 system, you only have 0 1 2 3 4 5 6 7 8 9, so what happens when you want to 9+1??
you reset the 9 to a 0 and you carry over 1, ending up with 10, BECAUSE 9 is the END of the possible digits


In binary, you have 0 and 1, meaning if you add 1 to 1, you have to reset the 1 to 0 and carry over 1, ending up with 10, because 1 is the "end" of the possible digits in this system
so someting like 0, 1, 10, 11, 100, 101, 110, 111 means 0,1,2,3,4,5,6,7


Now hex is just base 16, so you only have 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Just treat ABCDEF like regular numbers, they "come" after 9. and F is the end, the biggest single "digit"

Now if your last "digit" is a F, and you want to +1 to it, then you have to reset the F to a 0, and carry over 1 to the digit to the left of the F

soooo the digit after F is 10, then you just keep on adding ones, sooo...

10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F, and now +1 will make the F reset to 0, and carry over a 1 making the answer "20"



To convert a number from any system back into base 10 all you need to do is the following:
1) know what system you are currently in
2) apply formula:

say i want to translate base 10: 12345 into base 10
you can list then out like this

5 x 10^0 = 5
4 x 10^1 = 40
3 x 10^2 = 300
2 x 10^3 = 2000
1 x 10^4 = 10000

then add up all the stuff which gives you 12345


Using this: we can apply to any number system, say HEX:12345 into base 10

5 x 16^0 =
4 x 16^1 =
3 x 16^2 =
2 x 16^3 =
1 x 16^4 =
adding up the products would give you the answer ;p




8 Re: Hex Codes on Mon Jul 12, 2010 1:34 am

neko


Quake III Member
Quake III Member
f%$^ that crap omg I cant do that its hurts my head OUCH "Run screaming like a Bitch"

http://flyff.gpotato.com/

9 Re: Hex Codes on Mon Jul 12, 2010 2:07 am

T@D


*pWp*Founder*
*pWp*Founder*
TheRustySpoon wrote:kk
In base 10 system, you only have 0 1 2 3 4 5 6 7 8 9, so what happens when you want to 9+1??
you reset the 9 to a 0 and you carry over 1, ending up with 10, BECAUSE 9 is the END of the possible digits


In binary, you have 0 and 1, meaning if you add 1 to 1, you have to reset the 1 to 0 and carry over 1, ending up with 10, because 1 is the "end" of the possible digits in this system
so someting like 0, 1, 10, 11, 100, 101, 110, 111 means 0,1,2,3,4,5,6,7


Now hex is just base 16, so you only have 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Just treat ABCDEF like regular numbers, they "come" after 9. and F is the end, the biggest single "digit"

Now if your last "digit" is a F, and you want to +1 to it, then you have to reset the F to a 0, and carry over 1 to the digit to the left of the F

soooo the digit after F is 10, then you just keep on adding ones, sooo...

10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F, and now +1 will make the F reset to 0, and carry over a 1 making the answer "20"



To convert a number from any system back into base 10 all you need to do is the following:
1) know what system you are currently in
2) apply formula:

say i want to translate base 10: 12345 into base 10
you can list then out like this

5 x 10^0 = 5
4 x 10^1 = 40
3 x 10^2 = 300
2 x 10^3 = 2000
1 x 10^4 = 10000

then add up all the stuff which gives you 12345


Using this: we can apply to any number system, say HEX:12345 into base 10

5 x 16^0 =
4 x 16^1 =
3 x 16^2 =
2 x 16^3 =
1 x 16^4 =
adding up the products would give you the answer ;p






neko wrote:f%$^ that crap omg I cant do that its hurts my head OUCH "Run screaming like a Bitch"



That made Neko spell right....

More math!!!!


__________________________________________________________________________________________




"Science adjusts it's views based on what's observed.... Faith is the denial of observation so that beliefs can be preserved."


*{CHS}* Putch: im bringing sexxy back
*pWp*T@D*: I brought it back. But you are more then welcomed to fluff it.

<-H$*SoStoned / Pillies -: whos your quake fun person of the year taddie bear?!?!??!
*pWp*T@D*: me... dipshit.
*pWp*T@D*: Im the fun
.
http://www.pwpclan.org

10 Re: Hex Codes on Mon Jul 12, 2010 2:20 am

Virtuosity


Leader
Leader
Oh wow your right.. MORE MATH!


__________________________________________________________________________________________

Carry Ryze like a boss!

11 Re: Hex Codes on Mon Jul 12, 2010 3:28 am

maX!ma


Quake Live Member
Quake Live Member
lmfao, start to equations :p


__________________________________________________________________________________________


*pWp*T@D - people should know by now... pwp is like a "gang". Fuck with someone in our forums... and you get it back.
http://www.pwpclan.org

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum