Difference between revisions of "Hexadecimal"

From Jeskola Buzz Wiki
Jump to: navigation, search
(Hex is written in uppercase in trackers because of their amiga past.)
Line 1: Line 1:
 
Hexadecimal: Counting in base-16 as opposed to the more commonly used base-10.
 
Hexadecimal: Counting in base-16 as opposed to the more commonly used base-10.
  
Instead of 0123456789 we now have 0123456789abcdef to count with. Like this:
+
Instead of 0123456789 we now have 0123456789ABCDEF to count with. Like this:
  
 
# 1
 
# 1
Line 12: Line 12:
 
# 8
 
# 8
 
# 9  
 
# 9  
# a
+
# A
# b
+
# B
# c
+
# C
# d
+
# D
# e
+
# E
# f
+
# F
 
# 10
 
# 10
  
 
some useful number to memorize:<br>
 
some useful number to memorize:<br>
254 - ff (this is "max" for a 2column hexnumber)<br>
+
254 - FF (this is "max" for a 2column hexnumber)<br>
127 - 7f (this is "mid" for a 2column hexnumber)<br>
+
127 - 7F (this is "mid" for a 2column hexnumber)<br>
65535 - ffff (this is "max" for a 4column hexnumber)<br>
+
65535 - FFFF (this is "max" for a 4column hexnumber)<br>
32767 - 7fff (this is "mid" for a 4column hexnumber)<br>
+
32767 - 7FFF (this is "mid" for a 4column hexnumber)<br>

Revision as of 13:35, 27 July 2009

Hexadecimal: Counting in base-16 as opposed to the more commonly used base-10.

Instead of 0123456789 we now have 0123456789ABCDEF to count with. Like this:

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. A
  11. B
  12. C
  13. D
  14. E
  15. F
  16. 10

some useful number to memorize:
254 - FF (this is "max" for a 2column hexnumber)
127 - 7F (this is "mid" for a 2column hexnumber)
65535 - FFFF (this is "max" for a 4column hexnumber)
32767 - 7FFF (this is "mid" for a 4column hexnumber)