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
Integer (computer science)
(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!
== Extreme values == In many programming languages, there exist predefined constants representing the least and the greatest values representable with a given integer type. Names for these include * [[SmallBASIC]]: {{code|MAXINT|lang=basic}}<ref>{{cite web|title=SmallBASIC {{!}} MAXINT|url=https://smallbasic.github.io/reference/1736|access-date=2025-01-20}}</ref> * [[Java (programming language)|Java]]: {{java|java.lang.Integer.MAX_VALUE}}, {{java|java.lang.Integer.MIN_VALUE}}<ref>{{cite web|title=Integer (Java Platform SE 8 )|url=https://docs.oracle.com/javase/8/docs/api///java/lang/Integer.html|access-date=2025-01-20}}</ref> *: Corresponding fields exist for the other integer classes in Java. * [[C (programming language)|C]]: {{c-lang|INT_MAX}}, etc.{{cn|date=January 2025}} ** [[GLib]]: {{c-lang|G_MININT}}, {{c-lang|G_MAXINT}}, {{c-lang|G_MAXUINT}}, ...<ref>{{cite web|title=Limits of Basic Types|url=https://web.mit.edu/barnowl/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html|access-date=2025-01-20}}</ref> * [[Haskell (programming language)|Haskell]]: {{code|minBound}}, {{code|maxBound}}<ref>{{cite web|title=Prelude|url=https://hackage.haskell.org/package/base-4.21.0.0/docs/Prelude.html#t:Bounded}}</ref> * [[Pascal (programming language)|Pascal]]: {{code|MaxInt|pascal}}{{cn|date=January 2025}} * [[Python 2]]: {{python|sys.maxint}}{{cn|date=January 2025}} * [[Turing (programming language)|Turing]]: {{code|maxint}}<ref>{{cite book|author-last=Grogono|author-first=Peter|title=Programming with Turing and Object Oriented Turing|lccn=95010802|doi=10.1007/978-1-4612-4238-3|year=1995|publisher=Springer|location=New York|page=363}}</ref>
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)