255!
Warum diese Zahl so besonders ist? Weil wir jetzt am Limit sind!
Zumindest ist diese Zahl oft das Limit:
en.wikipedia.org - 07 August 2011 02:38 AM
255 is a special number in some tasks having to do with computing. This is the maximum value representable by an eight-digit binary number, and therefore the maximum representable by an unsigned 8-bit byte (the most common size of byte, also called an octet), the smallest common variable size used in high level programming languages (bit being smaller, but rarely used for value storage). The range is 0 to 255, which is 256 total values.
255 = 28 − 1 = FF16 = 111111112
For example, 255 is the maximum value
that can be assigned to elements in the 24-bit RGB color model, since each color channel is allotted eight bits.
of any dotted quad in an IP address.
of the alpha blending scale in Delphi (255 being 100% visible and 0 being fully transparent)
The use of eight bits for storage in older video games has had the consequence of it appearing as a hard limit in many video games. In the earlier versions of The Legend of Zelda, Link can carry a maximum of 255 rupees.[1] 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 to appear when the number wraps back to 0.
This number could be interpreted by a computer as −1 if a programmer is not careful about which 8-bit values are signed and unsigned, and the two’s complement representation of −1 in a signed byte is equal to that of 255 in an unsigned byte.