Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 In mathematics  





2 In computing  





3 References  














255 (number)






العربية
Azərbaycanca
 / Bân-lâm-gú
Български
Cebuano
Čeština
Deutsch
Emiliàn e rumagnòl
Euskara
فارسی
Français
Gaeilge

Italiano
Kiswahili
Kreyòl ayisyen
Magyar
Македонски
مازِرونی
Bahasa Melayu
 
 / Mìng-dĕ̤ng-nḡ
Nederlands

Oʻzbekcha / ўзбекча
پښتو
Română
Sesotho sa Leboa
کوردی
Svenska
Татарча / tatarça
Українська
اردو
Tiếng Vit


 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from 0xFF)

← 254 255 256 →

250 251 252 253 254 255 256 257 258 259

  • Integers
  • 0 100 200 300 400 500 600 700 800 900

    Cardinaltwo hundred fifty-five
    Ordinal255th
    (two hundred fifty-fifth)
    Factorization3 × 5 × 17
    Greek numeralΣΝΕ´
    Roman numeralCCLV
    Binary111111112
    Ternary1001103
    Senary11036
    Octal3778
    Duodecimal19312
    HexadecimalFF16

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

    In mathematics[edit]

    Its factorization makes it a sphenic number.[1] Since 255 = 28 – 1, it is a Mersenne number[2] (though not a pernicious one), 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.

    Since 255 is the product of the first three Fermat primes, the regular 255-gon is constructible.

    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[edit]

    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.

    For example, 255 is the maximum value of

    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. For example, in the original The Legend of Zelda game, Link can carry a maximum of 255 rupees.[3] 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, such as the infamous "kill screen" seen after clearing level 255 of Pac-Man.[4]

    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[edit]

    1. ^ Sloane, N. J. A. (ed.). "Sequence A007304 (Sphenic numbers: products of 3 distinct primes.)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  • ^ "PDF" (PDF). American Mathematical Society. Retrieved 12 March 2015.
  • ^ Hoovler, Evan. "The History of Annoying Side-Quests in Videogames Archived 2010-04-10 at the Wayback Machine." GameSpy. 2009-12-04.
  • ^ Clewett, James. "255 and Pac-Man". Numberphile. 2007-17-11.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=255_(number)&oldid=1219069327"

    Category: 
    Integers
    Hidden categories: 
    Webarchive template wayback links
    Articles needing additional references from January 2009
    All articles needing additional references
    Articles with short description
    Short description matches Wikidata
     



    This page was last edited on 15 April 2024, at 15:24 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki