Magic Number

Talk about anything, including games and servers not affiliated with The Mana World.
Post Reply
Kicon Kijin
Peon
Peon
Posts: 7
Joined: 24 Jun 2007, 05:57

Magic Number

Post by Kicon Kijin »

The magic number is...
































255

Why is it always 255?
BitHacker wrote:You are running WINE on our back-end dev cluster. What happened to keeping it CLEAN.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

255 is the largest number you can represent in one byte.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Matt
Grand Knight
Grand Knight
Posts: 1759
Joined: 07 Aug 2004, 10:47
Location: Germany->Bavaria

Post by Matt »

???
ogberi
Peon
Peon
Posts: 3
Joined: 29 Jun 2007, 17:50

Post by ogberi »

It's a binary thing.

A byte is 8 bits. A bit has 2 states, 0 or 1.

So 2 ^ 8 = 256. Computers start counting at zero, so it's 0 to 255.
Matt
Grand Knight
Grand Knight
Posts: 1759
Joined: 07 Aug 2004, 10:47
Location: Germany->Bavaria

Post by Matt »

Well. I know. But ... wtf ... why created he a thread about it. here? it doesnt make sense!

ebnr <tagged>
Post Reply