Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Magic number (programming)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Data type limits == This is a list of limits of data storage types:<ref>{{Cite web |url=https://learn.microsoft.com/en-us/previous-versions/software-testing/ee621251(v=msdn.10) |title=Magic Numbers: Integers |last=Poley |first=Josh |date=30 September 2009 |website=Learn |publisher=[[Microsoft]] |archive-url=https://web.archive.org/web/20230328134018/https://learn.microsoft.com/en-us/previous-versions/software-testing/ee621251%28v=msdn.10%29 |archive-date=28 March 2023 |url-status=live }}</ref> {| class="wikitable" !Decimal !Hex !Description |- |[[18,446,744,073,709,551,615]] |FFFF{{thin space}}FFFF{{thin space}}FFFF{{thin space}}FFFF |The maximum unsigned 64 bit value (2<sup>64</sup> β 1) |- |[[9,223,372,036,854,775,807]] |7FFF{{thin space}}FFFF{{thin space}}FFFF{{thin space}}FFFF |The maximum signed 64 bit value (2<sup>63</sup> β 1) |- |[[9,007,199,254,740,992]] |0020{{thin space}}0000{{thin space}}0000{{thin space}}0000 |The largest consecutive integer in [[Double-precision floating-point format|IEEE 754 double precision]] (2<sup>53</sup>) |- |[[4,294,967,295]] |FFFF{{thin space}}FFFF |The maximum unsigned 32 bit value (2<sup>32</sup> β 1) |- |[[2,147,483,647]] |7FFF{{thin space}}FFFF |The maximum signed 32 bit value (2<sup>31</sup> β 1) |- |[[16,777,216]] |0100{{thin space}}0000 |The largest consecutive integer in [[Single-precision floating-point format|IEEE 754 single precision]] (2<sup>24</sup>) |- |[[65,535]] |FFFF |The maximum unsigned 16 bit value (2<sup>16</sup> β 1) |- |32,767 |7FFF |The maximum signed 16 bit value (2<sup>15</sup> β 1) |- |[[255 (number)|255]] |FF |The maximum unsigned 8 bit value (2<sup>8</sup> β 1) |- |127 |7F |The maximum signed 8 bit value (2<sup>7</sup> β 1) |- | β128 |80 |Minimum signed 8 bit value |- | β32,768 |8000 |Minimum signed 16 bit value |- | β2,147,483,648 |8000{{thin space}}0000 |Minimum signed 32 bit value |- | β9,223,372,036,854,775,808 |8000{{thin space}}0000{{thin space}}0000{{thin space}}0000 |Minimum signed 64 bit value |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)