View Single Post
  #2  
Old May 8th, 2001, 08:21 PM
capnq's Avatar

capnq capnq is offline
General
 
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
capnq is on a distinguished road
Default Re: Could someone explain:

quote:
What I would like to know is, in my ignorance of computer programming, are if an 8-bit number is too small, is 16-bit our next option? Is not there some number in between we could use? If not I am sure he could use a 16-bit number, and then hard code some logical limit to the number of systems, say 1000 or somethhing like that that would keep the mem usage to a reasonable level.
Since computers "think" in binary arithmetic, at the bit level everything is done in powers of 2. That's why a "kilobyte" is 1024 bytes rather than 1000, and a "megabyte" is 1048576 bytes (1024^2) rather than 1000000. I suppose in theory you could design hardware that used some intermediate value, but I don't know of any real-world examples where it's been done.

------------------
Cap'n Q
__________________
Cap'n Q

"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
Reply With Quote