Thread: Count Limits?
View Single Post
  #2   Spotlight this post!  
Unread 04-02-2003, 14:25
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
word = 65536

It's possible to count up to 65536 numbers (range from 0 - 65535) if you use a word. A word is 16 bits so you get up to 2^16 numbers.

Technically all you need are 11 bits, that will get you 2048 numbers. If you're hurting for space you can use a byte and a nibble and do some creative incrementing.

If you want to know more just say so, a lot of people here can help.