View Single Post
  #28  
Old 17-06-2005, 06:01
DABhand DABhand is offline
Banned
 
Join Date: Nov 2004
Location: Near my PC
Posts: 5,406
Thanks: 0
Thanked 3 Times in 3 Posts
DABhand is on a distinguished road
Quote:
Originally Posted by Joe Forster/STA
Some basic Maths, only for DABhand's further education...

An unsigned double word consists of four bytes, each of which can have 256 different values: from 0 to 255. Similarly, a four-digit decimal number consists of four decimal digits, each of which can have 10 different values: from 0 to 9.

The maximum value for a four-digit decimal number is 10x10x10x10 - 1 = 9999, not 9x9x9x9 = 6561. The maximum value for an unsigned double word is analogously 256x256x256x256 - 1 = 4,294,967,295, not 255x255x255x255 = 4,228,250,625.
Unfortunately you cant have 256x256x256x256 in a game, it is impossible.

The 256x256x256x256 is combinations :P

like 0x0x0x0 would be 1st
0x0x0x1 would be 2nd and so on..

There is no 8bit hex value for 256, it has to be 16bit if u want 256.
Reply With Quote