Results 1 to 19 of 19

Thread: Why is 255 the magic number?

  1. #1
    Strawberry (Level 2)
    Join Date
    Apr 2006
    Posts
    573
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default Why is 255 the magic number?

    ??????

  2. #2
    Cherry (Level 1) modest9797's Avatar
    Join Date
    May 2008
    Location
    Pennsylvania
    Posts
    307
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Xbox LIVE
    modest9797

    Default

    Could you explain a little more?
    Xbox Live : modest9797
    Games I Want
    PS1: 2% PS2: 0%
    Xbox: 42% GC: 18%

  3. #3
    Insert Coin (Level 0)
    Join Date
    May 2005
    Posts
    56
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Because it's the largest number that can be stored in a single byte.
    Last edited by Amos; 05-18-2008 at 03:51 PM.

  4. #4
    Bell (Level 8)
    Join Date
    Jul 2002
    Location
    St. Louis, Mo
    Posts
    1,660
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by Amos View Post
    Because it's the largest number that can be stored in a single byte.
    we have a winner.

  5. #5
    Flawless Rawkality Flack's Avatar
    Join Date
    Aug 2003
    Location
    OKC, OK
    Posts
    14,273
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    4
    Thanked in
    3 Posts

    Default

    In base 2, 255 = 11111111.

    Per Wikipedia: This number occurs especially frequently in video games when a small number is needed, such as in the original The Legend of Zelda for the Nintendo Entertainment System where the maximum number of Rupees (the currency of the game) is 255. In Metroid Prime, for the Nintendo Gamecube, 255 is the maximum number of missiles Samus Aran can hold. In the Madden NFL series, the maximum points you can score is 255. If more points are scored, the game score remains at 255 regardless. In Starcraft, the maximum number of kills shown for a unit is 255. In Square Enix's Final Fantasy series, it is often the maximum value for any given stat. In Pac-Man, the highest level you can reach is 255, The game glitches from that point on. In World of Warcraft although the game level cap is only 70, the engine supports up to 255. The usage of 8 bits for storage in older videogames has had the consequence of it appearing as a hard limit in many videogames. It was often used for numbers where casual gameplay would not cause anyone to exceed the number. However in most situations it is reachable given enough time. This can cause many other peculiarities similar to the above listed to appear when the number wraps back to 0.

    Brought to you by Tootie.


  6. #6
    Insert Coin (Level 0) majinbuu's Avatar
    Join Date
    Jan 2006
    Location
    Perth, Western Australia
    Posts
    189
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Like the other guys said, a single byte can hold 256 values, from 0 to 255. Since a byte equals 8 bits, this works particularly well on 8 bit machines.

    Visually: A byte looks like this xxxxxxxx, where x is a 0 or a 1 and each x represents 1 bit. So you can have 01010101, 11111111, 00110011 and so on. Doing the math, since each bit can be in one of two states, and there are 8 of them, 2^8=256.

    I hope that made sense

    Sam
    I like turtles

  7. #7
    Cherry (Level 1)
    Join Date
    Mar 2004
    Location
    cleveland
    Posts
    286
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    dont forget hexadecimal ff=255
    you will see hex used in many cheat deviced aka action replay, cheats ending in 63hex = 99 dec for 99 lives or ff used for maxed life.

    In mathematics and computer science, hexadecimal (also base-16, hexa, or hex) is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or a through f) to represent values ten to fifteen.

    Its primary use is as a human friendly representation of binary coded values, so it is often used in digital electronics and computer engineering. Since each hexadecimal digit represents four binary digits (bits)—also called a nibble—it is a compact and easily translated shorthand to express values in base two.

  8. #8
    Casual Collector Custom rank graphic
    RadiantSvgun's Avatar
    Join Date
    Mar 2006
    Location
    Atlanta, GA
    Posts
    1,619
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Xbox LIVE
    Shotmastarich
    PSN
    Radiantsvgun

    Default

    I guess you are referring to stuff like Lagoon, YS, and Mario RPG. That everything maxes out at 255?

    I always thought that it was a cool sound number.
    www.famicomshop.com -best place for famicom stuff. Run by a DP member.
    Radiant's Ongoing Ebay Auctions

  9. #9
    Red (Level 21) Jorpho's Avatar
    Join Date
    Jul 2002
    Location
    We're all mad here
    Posts
    13,554
    Thanks Thanks Given 
    2
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    I remember in Final Fantasy Adventure, your money would max out at 65535 = FFFF h = 256^2 - 1.
    Last edited by J'orfeaux; 05-18-2008 at 11:22 PM.
    "There is much pleasure to be gained from useless knowledge." --Bertrand Russel (attributed)

  10. #10
    ServBot (Level 11) tom's Avatar
    Join Date
    Jul 2002
    Location
    USA & RUSSIA
    Posts
    3,681
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    2
    Thanked in
    2 Posts

    Default

    But in generic terms, it's always called 256 (64, 128, 256 etc...), why's that?

  11. #11
    Shmup Hooligan Custom rank graphic
    Icarus Moonsight's Avatar
    Join Date
    May 2004
    Location
    Houston Texas & Ancapistan
    Posts
    6,856
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    It's not a generic term. A byte can have 256 values. One of which is zero. Seems like paradox when you look at it in a usual day-to-day base 10 mentality where 1 is the first value. That is only because (in real life) it's stupid to count things that are not there.
    Last edited by Icarus Moonsight; 05-19-2008 at 02:03 AM.


    This signature is dedicated to all those
    cyberpunks who fight against injustice
    and corruption every day of their lives

  12. #12
    Key (Level 9)
    Join Date
    Jun 2005
    Location
    New Zealand
    Posts
    1,988
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    While we're here, I believe character levels in Star Ocean cap out at 255 as well.
    "If each mistake being made is a new one, then progress is being made."

  13. #13
    Ryu Hayabusa (Level 16) rbudrick's Avatar
    Join Date
    Sep 2002
    Location
    Buying the rare ones, moments before you get there.
    Posts
    8,435
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    3
    Thanked in
    2 Posts

    Default

    Since Contra's score uses two bytes, the maximum score is 6,553,500, the maximum that can be stored in two bytes (with two zeroes thrown in at the end, since nothing in the game will ever increment the ones or tens digit).

    -Rob
    The moral is, don't **** with Uncle Tim when he's been drinking!

  14. #14
    Peach (Level 3)
    Join Date
    Jan 2005
    Posts
    757
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    255 is the largest number you can put in a single byte unless you're using two's compliments to represent negatives. In that case, 11111111 actually is -1 and the largest number you can have is 127 which is 01111111.

  15. #15
    Insert Coin (Level 0)
    Join Date
    Jun 2008
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    -----
    Last edited by Wabs; 01-12-2022 at 03:15 PM.

  16. #16
    Pac-Man (Level 10) mailman187666's Avatar
    Join Date
    Feb 2006
    Location
    MA
    Posts
    2,050
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    11
    Thanked in
    10 Posts

    Default

    looks like I'm one of the few people here that were thinking about getting high and staring at the cuties in highschool rather than studying math :/. You guys are whizes. Of course I was never in the higher math courses.

  17. #17
    Great Puma (Level 12) jb143's Avatar
    Join Date
    Nov 2007
    Location
    St. Louis
    Posts
    4,250
    Thanks Thanks Given 
    5
    Thanks Thanks Received 
    69
    Thanked in
    62 Posts

    Default

    This isn't really stuff they taught in math class. More than likely all these guys were taking computer science classes rather than getting high and staring at the cuties
    "Game programmers are generally lazy individuals. That's right. It's true. Don't let anyone tell you otherwise. Since the dawn of computer games, game programmers have looked for shortcuts to coolness." Kurt Arnlund - Game programmer for Activision, Accolade...

  18. #18
    Ryu Hayabusa (Level 16) rbudrick's Avatar
    Join Date
    Sep 2002
    Location
    Buying the rare ones, moments before you get there.
    Posts
    8,435
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    3
    Thanked in
    2 Posts

    Default

    Quote Originally Posted by jb143 View Post
    This isn't really stuff they taught in math class. More than likely all these guys were taking computer science classes rather than getting high and staring at the cuties
    Aww, come on. There was always time for both! Women love dudes with huge brains...as long as they aren't egotistical, ugly, antisocial and awkward. Unless he has some money, of course.

    Kdding ladies. Officially,anyway.

    -Rob
    The moral is, don't **** with Uncle Tim when he's been drinking!

  19. #19
    Pac-Man (Level 10) mailman187666's Avatar
    Join Date
    Feb 2006
    Location
    MA
    Posts
    2,050
    Thanks Thanks Given 
    1
    Thanks Thanks Received 
    11
    Thanked in
    10 Posts

    Default

    well either way, as you can see where not paying attention didn't help me out too much ha ha ha.

Similar Threads

  1. Number of games???
    By eolsen in forum Classic Gaming
    Replies: 2
    Last Post: 12-01-2003, 07:51 PM
  2. Where to find pin number???
    By aaron_157 in forum Buying and Selling
    Replies: 4
    Last Post: 11-25-2003, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •