View Single Post
  #29  
Old 02-22-2002, 10:25 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
this question wasn't directed at me, but I feel compelled to answer

Hex is a 16-digit number system (as opposed to our 10-digit system)

so, in Hex

1 is 16^0
10 is 16^1
100 is 16^2

where in standard

1 is 10^0
10 is 10^1
100 is 10^2

to have these extra 6 digits, the letters A-F are used

Hex to Standard conversions

5 - 5
9 - 9
A -10
C - 12
F - 15
10 - 16

In graal, to show a number is hex, we start off this number with 0x

0x1AF
0xFF

the good thing about hex, is that every value that can be stored in a byte is a two digit number in hex, because "FF" is 255, and that is the max a byte can hold...so and two digits will be a byte

I am bored, so hey
Reply With Quote