|
-
Jan 9th, 2006, 02:28 PM
#1
Thread Starter
New Member
Confused
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???
-
Jan 9th, 2006, 02:29 PM
#2
Re: Confused
Moved to General Developer
-
Jan 9th, 2006, 02:36 PM
#3
Re: Confused
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)
-
Jan 9th, 2006, 03:28 PM
#4
Re: Confused
 Originally Posted by dglienna
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.
My usual boring signature: Nothing
 
-
Jan 9th, 2006, 03:34 PM
#5
Re: Confused
dg got a little carried away with that explanation
-
Jan 9th, 2006, 03:43 PM
#6
Re: Confused
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
-
Jan 10th, 2006, 01:35 PM
#7
Thread Starter
New Member
-
Jan 10th, 2006, 01:47 PM
#8
Re: Confused
Oops. Using CALC. Forgot to subtract 1 from both exponential calcs. Logic over-ridden
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|