255 (number)

255 (number)
255
Cardinal Two hundred [and] fifty-five
Ordinal 255th
(Two hundred [and] fifty-fifth)
Factorization 255 = 3 \cdot 5 \cdot 17
Roman numeral CCLV
Binary 111111112
Octal 3778
Duodecimal 19312
Hexadecimal FF16

255 (two hundred [and] fifty-five, CCLV) is the natural number following 254 and preceding 256.

In mathematics

Its factorization makes it a sphenic number. Since 255 = 28 - 1, it is a Mersenne number, and the fourth such number not to be a prime number. It is a perfect totient number, the smallest such number to be neither a power of three nor thrice a prime.

In base 10, it is a self number.

255 is a repdigit in base 2 (11111111) in base 4 (3333), and in base 16 (FF).

In computing

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.

References

  1. ^ Hoovler, Evan. "The History of Annoying Side-Quests in Videogames." GameSpy. 2009-12-04.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • 255 McKibbin — St. is a five story residential loft building and in Bushwick, Brooklyn. Each of its five floors is subdivided into 16 apartment units, ranging in size from approximately 400 to 2500 square feet (five units between the first and second floors are …   Wikipedia

  • number game — Introduction       any of various puzzles and games that involve aspects of mathematics.       Mathematical recreations comprise puzzles and games that vary from naive amusements to sophisticated problems, some of which have never been solved.… …   Universalium

  • number length — skaičiaus ilgis statusas T sritis informatika apibrėžtis Skaičiaus pavaizdavimo ilgis, išreikštas jam reikalingais atminties vienetais: bitais, baitais, dešimtainiais arba dvejetainiais skaitmenimis. Šis terminas vartotinas tik kalbant apie… …   Enciklopedinis kompiuterijos žodynas

  • 250 (number) — 250 is the natural number following 249 and preceding 251.As a Mandarin slang term, 250 (二百五 pinyin èrbǎiwǔ) is an insult meaning stupid person or simpleton . The expression is based on bàndiàozi (半弔子 or 半吊子). In ancient China, copper coins were… …   Wikipedia

  • 256 (number) — Number|number = 256 range = 0 1000 cardinal = two hundred [and] fifty six ordinal = th ordinal text = numeral = factorization = 256 = 2^8 prime = divisor = roman = CCLVI unicode = greek prefix = latin prefix = bin = 100000000 oct = 400 duo = 194… …   Wikipedia

  • Wikipedia:List of Wikipedians by number of edits — Shortcuts: WP:NOE WP:WBE WP:EDITS WP:MOSTEDITS This is a list of Wikipedians ordered by number of edits in the English language Wikipedia. Edits in all namespaces are counted; deleted edits have been included in recent versions. Click… …   Wikipedia

  • Bundesstraße 255 — Basisdaten Gesamtlänge: 97 km Bundesländer: Hessen Rheinland Pfalz …   Deutsch Wikipedia

  • Bundesautobahn 255 — Vorlage:Infobox hochrangige Straße/Wartung/DE A Bundesautobahn 255 in Deutschland Kart …   Deutsch Wikipedia

  • Northwest Airlines Flight 255 — Northwest Flight 255 Accident summary Date August 16, 1987 Type Pilot error/incorrect plane configuration prior to takeoff/taxi/System failure …   Wikipedia

  • 10 (number) — 10 (ten) is an even natural number following 9 and preceding 11. *Jews observe the annual Ten Days of Repentance beginning on Rosh Hashanah and ending on Yom Kippur. *In Jewish liturgy, Ten Martyrs are singled out as a group. *There are said to… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”