Click to See Complete Forum and Search --> : Confused
mtecknology
Jan 9th, 2006, 01:28 PM
This question isn't approopriate for the forum, but this seems a logical place for smart people to give a reply...
The Magic Number for computers seems to be 255.
FF converted to dec is 255
0-F to Dec is 16
Array (O-F):
0 1 . F
1
.
F
thats a 16 by 16 grid.
16 * 16 = 256
RAM Comes in 256 increments
Where does the extra 1 from FF to 256 come in???
Hack
Jan 9th, 2006, 01:29 PM
Moved to General Developer
dglienna
Jan 9th, 2006, 01:36 PM
There are 256 numbers between 0 and 255. If you use an 8 bit byte, with all bits turned off 0000 0000, the value is 0, but if you turn on all the bits 1111 1111, the value is 256 (or 2^8). (2^16 = 65536, or 64K)
Shaggy Hiker
Jan 9th, 2006, 02:28 PM
There are 256 numbers between 0 and 255. If you use an 8 bit byte, with all bits turned off 0000 0000, the value is 0, but if you turn on all the bits 1111 1111, the value is 256 (or 2^8). (2^16 = 65536, or 64K)
Last I heard, 1111 1111 has the value 255, not 256. Otherwise that's about it.
szlamany
Jan 9th, 2006, 02:34 PM
dg got a little carried away with that explanation :D
conipto
Jan 9th, 2006, 02:43 PM
You could just say, the short answer is you have to count zero. In your 2D array, you have to count 0,0. The number of positions range from 00 to FF. FF is 255, which is the 256th possible combination.
Bill
mtecknology
Jan 10th, 2006, 12:35 PM
Thanks
dglienna
Jan 10th, 2006, 12:47 PM
Oops. Using CALC. Forgot to subtract 1 from both exponential calcs. Logic over-ridden :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.