CINXE.COM

Integer (computer science) - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Integer (computer science) - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"a5dcae2c-e30b-45cd-916a-955fc9451a39","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Integer_(computer_science)","wgTitle":"Integer (computer science)","wgCurRevisionId":1258985112,"wgRevisionId":1258985112,"wgArticleId":14794,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description matches Wikidata","Data types","Computer arithmetic","Primitive types"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Integer_(computer_science)","wgRelevantArticleId":14794,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgRedirectedFrom": "Long_integer","wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgInternalRedirectTargetUrl":"/wiki/Integer_(computer_science)#Long_integer","wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q729138","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"], "GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips", "ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Integer (computer science) - Wikipedia"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Integer_(computer_science)#Long_integer"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Integer_(computer_science)&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Integer_(computer_science)#Long_integer"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Integer_computer_science rootpage-Integer_computer_science skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Integer+%28computer+science%29" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Integer+%28computer+science%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Integer+%28computer+science%29" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Integer+%28computer+science%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Value_and_representation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Value_and_representation"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Value and representation</span> </div> </a> <ul id="toc-Value_and_representation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Common_integral_data_types" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Common_integral_data_types"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Common integral data types</span> </div> </a> <button aria-controls="toc-Common_integral_data_types-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Common integral data types subsection</span> </button> <ul id="toc-Common_integral_data_types-sublist" class="vector-toc-list"> <li id="toc-Bytes_and_octets" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Bytes_and_octets"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Bytes and octets</span> </div> </a> <ul id="toc-Bytes_and_octets-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Words" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Words"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Words</span> </div> </a> <ul id="toc-Words-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Standard_integer" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Standard_integer"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Standard integer</span> </div> </a> <ul id="toc-Standard_integer-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Short_integer" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Short_integer"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Short integer</span> </div> </a> <ul id="toc-Short_integer-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Long_integer" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Long_integer"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Long integer</span> </div> </a> <ul id="toc-Long_integer-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Long_long" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Long_long"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Long long</span> </div> </a> <ul id="toc-Long_long-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Syntax" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Syntax</span> </div> </a> <ul id="toc-Syntax-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notes" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Notes</span> </div> </a> <ul id="toc-Notes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Integer (computer science)</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 37 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-37" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">37 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%B9%D8%AF%D8%AF_%D8%B5%D8%AD%D9%8A%D8%AD_(%D8%B9%D9%84%D9%88%D9%85_%D8%AD%D8%A7%D8%B3%D9%88%D8%A8)" title="عدد صحيح (علوم حاسوب) – Arabic" lang="ar" hreflang="ar" data-title="عدد صحيح (علوم حاسوب)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/Enteru_(tipu_de_datu)" title="Enteru (tipu de datu) – Asturian" lang="ast" hreflang="ast" data-title="Enteru (tipu de datu)" data-language-autonym="Asturianu" data-language-local-name="Asturian" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Tam_%C9%99d%C9%99dl%C9%99r_(komp%C3%BCter)" title="Tam ədədlər (kompüter) – Azerbaijani" lang="az" hreflang="az" data-title="Tam ədədlər (kompüter)" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/%D0%A6%D0%B5%D0%BB%D0%BE%D1%87%D0%B8%D1%81%D0%BB%D0%B5%D0%BD%D0%B8_%D1%82%D0%B8%D0%BF%D0%BE%D0%B2%D0%B5_%D0%B4%D0%B0%D0%BD%D0%BD%D0%B8" title="Целочислени типове данни – Bulgarian" lang="bg" hreflang="bg" data-title="Целочислени типове данни" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Enter_(tipus_de_dada)" title="Enter (tipus de dada) – Catalan" lang="ca" hreflang="ca" data-title="Enter (tipus de dada)" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Integer" title="Integer – Czech" lang="cs" hreflang="cs" data-title="Integer" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Heltal_(Computer)" title="Heltal (Computer) – Danish" lang="da" hreflang="da" data-title="Heltal (Computer)" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Integer_(Datentyp)" title="Integer (Datentyp) – German" lang="de" hreflang="de" data-title="Integer (Datentyp)" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/T%C3%A4isarv_(andmet%C3%BC%C3%BCp)" title="Täisarv (andmetüüp) – Estonian" lang="et" hreflang="et" data-title="Täisarv (andmetüüp)" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/%CE%91%CE%BA%CE%AD%CF%81%CE%B1%CE%B9%CE%BF%CF%82_(%CE%95%CF%80%CE%B9%CF%83%CF%84%CE%AE%CE%BC%CE%B7_%CF%84%CF%89%CE%BD_%CF%85%CF%80%CE%BF%CE%BB%CE%BF%CE%B3%CE%B9%CF%83%CF%84%CF%8E%CE%BD)" title="Ακέραιος (Επιστήμη των υπολογιστών) – Greek" lang="el" hreflang="el" data-title="Ακέραιος (Επιστήμη των υπολογιστών)" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Entero_(tipo_de_dato)" title="Entero (tipo de dato) – Spanish" lang="es" hreflang="es" data-title="Entero (tipo de dato)" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Datu_mota_osoa" title="Datu mota osoa – Basque" lang="eu" hreflang="eu" data-title="Datu mota osoa" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%85%D8%AA%D8%BA%DB%8C%D8%B1%D9%87%D8%A7%DB%8C_%D8%B1%D8%B4%D8%AA%D9%87%E2%80%8C%D8%A7%DB%8C_%DA%A9%D9%88%D8%AA%D8%A7%D9%87" title="متغیرهای رشته‌ای کوتاه – Persian" lang="fa" hreflang="fa" data-title="متغیرهای رشته‌ای کوتاه" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Entier_(informatique)" title="Entier (informatique) – French" lang="fr" hreflang="fr" data-title="Entier (informatique)" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EC%A0%95%EC%88%98%ED%98%95" title="정수형 – Korean" lang="ko" hreflang="ko" data-title="정수형" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%AA%E0%A5%82%E0%A4%B0%E0%A5%8D%E0%A4%A3%E0%A4%BE%E0%A4%82%E0%A4%95_(%E0%A4%B8%E0%A4%82%E0%A4%97%E0%A4%A3%E0%A4%95_%E0%A4%B5%E0%A4%BF%E0%A4%9C%E0%A5%8D%E0%A4%9E%E0%A4%BE%E0%A4%A8)" title="पूर्णांक (संगणक विज्ञान) – Hindi" lang="hi" hreflang="hi" data-title="पूर्णांक (संगणक विज्ञान)" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-io mw-list-item"><a href="https://io.wikipedia.org/wiki/Integro_(tipo_di_datumi)" title="Integro (tipo di datumi) – Ido" lang="io" hreflang="io" data-title="Integro (tipo di datumi)" data-language-autonym="Ido" data-language-local-name="Ido" class="interlanguage-link-target"><span>Ido</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Integer_(ilmu_komputer)" title="Integer (ilmu komputer) – Indonesian" lang="id" hreflang="id" data-title="Integer (ilmu komputer)" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Heilt%C3%B6lutag" title="Heiltölutag – Icelandic" lang="is" hreflang="is" data-title="Heiltölutag" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Numero_intero_(informatica)" title="Numero intero (informatica) – Italian" lang="it" hreflang="it" data-title="Numero intero (informatica)" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Eg%C3%A9sz_(informatika)" title="Egész (informatika) – Hungarian" lang="hu" hreflang="hu" data-title="Egész (informatika)" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/%D0%A6%D0%B5%D0%BB%D0%BE%D0%B1%D1%80%D0%BE%D1%98%D0%BD%D0%B0_%D0%B2%D1%80%D0%B5%D0%B4%D0%BD%D0%BE%D1%81%D1%82_(%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)" title="Целобројна вредност (информатика) – Macedonian" lang="mk" hreflang="mk" data-title="Целобројна вредност (информатика)" data-language-autonym="Македонски" data-language-local-name="Macedonian" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%AA%E0%B5%82%E0%B5%BC%E0%B4%A3%E0%B5%8D%E0%B4%A3%E0%B4%B8%E0%B4%82%E0%B4%96%E0%B5%8D%E0%B4%AF_(%E0%B4%95%E0%B4%AE%E0%B5%8D%E0%B4%AA%E0%B5%8D%E0%B4%AF%E0%B5%82%E0%B4%9F%E0%B5%8D%E0%B4%9F%E0%B5%BC_%E0%B4%B6%E0%B4%BE%E0%B4%B8%E0%B5%8D%E0%B4%A4%E0%B5%8D%E0%B4%B0%E0%B4%82)" title="പൂർണ്ണസംഖ്യ (കമ്പ്യൂട്ടർ ശാസ്ത്രം) – Malayalam" lang="ml" hreflang="ml" data-title="പൂർണ്ണസംഖ്യ (കമ്പ്യൂട്ടർ ശാസ്ത്രം)" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Integer_(informatica)" title="Integer (informatica) – Dutch" lang="nl" hreflang="nl" data-title="Integer (informatica)" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E6%95%B4%E6%95%B0%E5%9E%8B" title="整数型 – Japanese" lang="ja" hreflang="ja" data-title="整数型" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Liczba_ca%C5%82kowita_(typ_danych)" title="Liczba całkowita (typ danych) – Polish" lang="pl" hreflang="pl" data-title="Liczba całkowita (typ danych)" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Inteiro_(ci%C3%AAncia_da_computa%C3%A7%C3%A3o)" title="Inteiro (ciência da computação) – Portuguese" lang="pt" hreflang="pt" data-title="Inteiro (ciência da computação)" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%A6%D0%B5%D0%BB%D0%BE%D0%B5_(%D1%82%D0%B8%D0%BF_%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85)" title="Целое (тип данных) – Russian" lang="ru" hreflang="ru" data-title="Целое (тип данных)" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Int" title="Int – Albanian" lang="sq" hreflang="sq" data-title="Int" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Long_integer" title="Long integer – Simple English" lang="en-simple" hreflang="en-simple" data-title="Long integer" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Kokonaisluku_(tietotekniikka)" title="Kokonaisluku (tietotekniikka) – Finnish" lang="fi" hreflang="fi" data-title="Kokonaisluku (tietotekniikka)" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Integer" title="Integer – Swedish" lang="sv" hreflang="sv" data-title="Integer" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Tam_say%C4%B1_(bilgisayar_bilimi)" title="Tam sayı (bilgisayar bilimi) – Turkish" lang="tr" hreflang="tr" data-title="Tam sayı (bilgisayar bilimi)" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%A6%D1%96%D0%BB%D0%B5_%D1%87%D0%B8%D1%81%D0%BB%D0%BE_(%D1%82%D0%B8%D0%BF_%D0%B4%D0%B0%D0%BD%D0%B8%D1%85)" title="Ціле число (тип даних) – Ukrainian" lang="uk" hreflang="uk" data-title="Ціле число (тип даних)" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/S%E1%BB%91_nguy%C3%AAn_(khoa_h%E1%BB%8Dc_m%C3%A1y_t%C3%ADnh)" title="Số nguyên (khoa học máy tính) – Vietnamese" lang="vi" hreflang="vi" data-title="Số nguyên (khoa học máy tính)" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E6%95%B4%E6%95%B8_(%E8%B3%87%E6%96%99%E9%A1%9E%E5%9E%8B)" title="整數 (資料類型) – Cantonese" lang="yue" hreflang="yue" data-title="整數 (資料類型)" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/%E6%95%B4%E6%95%B0_(%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6)" title="整数 (计算机科学) – Chinese" lang="zh" hreflang="zh" data-title="整数 (计算机科学)" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q729138#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Integer_(computer_science)" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Integer_(computer_science)" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Integer_(computer_science)"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Integer_(computer_science)"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Integer_(computer_science)" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Integer_(computer_science)" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;oldid=1258985112" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Integer_%28computer_science%29&amp;id=1258985112&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FInteger_%28computer_science%29%23Long_integer"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FInteger_%28computer_science%29%23Long_integer"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Integer_%28computer_science%29&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Integer_(computer_science)&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q729138" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><span class="mw-redirectedfrom">(Redirected from <a href="/w/index.php?title=Long_integer&amp;redirect=no" class="mw-redirect" title="Long integer">Long integer</a>)</span></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Datum of integral data type</div> <p>In computer science, an <b>integer</b> is a <a href="/wiki/Datum" class="mw-redirect" title="Datum">datum</a> of <b>integral data type</b>, a <a href="/wiki/Data_type" title="Data type">data type</a> that represents some <a href="/wiki/Interval_(mathematics)" title="Interval (mathematics)">range</a> of mathematical <a href="/wiki/Integer" title="Integer">integers</a>. Integral data types may be of different sizes and may or may not be allowed to contain negative values. Integers are commonly represented in a computer as a group of <a href="/wiki/Binary_digit" class="mw-redirect" title="Binary digit">binary digits</a> (bits). The size of the grouping varies so the set of integer sizes available varies between different types of computers. Computer hardware nearly always provides a way to represent a processor <a href="/wiki/Word_size" class="mw-redirect" title="Word size">register</a> or memory address as an integer. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Value_and_representation">Value and representation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=1" title="Edit section: Value and representation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The <i>value</i> of an item with an integral type is the mathematical integer that it corresponds to. Integral types may be <i>unsigned</i> (capable of representing only non-negative integers) or <i>signed</i> (capable of representing negative integers as well).<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup> </p><p>An integer value is typically specified in the <a href="/wiki/Source_code" title="Source code">source code</a> of a program as a sequence of digits optionally prefixed with + or −. Some programming languages allow other notations, such as hexadecimal (base 16) or octal (base 8). Some programming languages also permit <a href="/wiki/Digit_group_separator" class="mw-redirect" title="Digit group separator">digit group separators</a>.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </p><p>The <i>internal representation</i> of this datum is the way the value is stored in the computer's memory. Unlike mathematical integers, a typical datum in a computer has some minimal and maximum possible value. </p><p>The most common representation of a positive integer is a string of <a href="/wiki/Bit" title="Bit">bits</a>, using the <a href="/wiki/Binary_numeral_system" class="mw-redirect" title="Binary numeral system">binary numeral system</a>. The order of the memory <a href="/wiki/Byte" title="Byte">bytes</a> storing the bits varies; see <a href="/wiki/Endianness" title="Endianness">endianness</a>. The <i>width</i>, <i>precision</i>, or <i>bitness</i><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> of an integral type is the number of bits in its representation. An integral type with <i>n</i> bits can encode 2<sup><i>n</i></sup> numbers; for example an unsigned type typically represents the non-negative values 0 through <span class="nowrap">2<sup><i>n</i></sup> − 1</span>. Other encodings of integer values to bit patterns are sometimes used, for example <a href="/wiki/Binary-coded_decimal" title="Binary-coded decimal">binary-coded decimal</a> or <a href="/wiki/Gray_code" title="Gray code">Gray code</a>, or as printed character codes such as <a href="/wiki/ASCII" title="ASCII">ASCII</a>. </p><p>There are four well-known <a href="/wiki/Signed_number_representations" title="Signed number representations">ways to represent signed numbers</a> in a binary computing system. The most common is <a href="/wiki/Two%27s_complement" title="Two&#39;s complement">two's complement</a>, which allows a signed integral type with <i>n</i> bits to represent numbers from <span class="nowrap">−2<sup>(<i>n</i>−1)</sup></span> through <span class="nowrap">2<sup>(<i>n</i>−1)</sup> − 1</span>. Two's complement arithmetic is convenient because there is a perfect <a href="/wiki/One-to-one_correspondence" class="mw-redirect" title="One-to-one correspondence">one-to-one correspondence</a> between representations and values (in particular, <a href="/wiki/Signed_zero" title="Signed zero">no separate +0 and −0</a>), and because <a href="/wiki/Addition" title="Addition">addition</a>, <a href="/wiki/Subtraction" title="Subtraction">subtraction</a> and <a href="/wiki/Multiplication" title="Multiplication">multiplication</a> do not need to distinguish between signed and unsigned types. Other possibilities include <a href="/wiki/Offset_binary" title="Offset binary">offset binary</a>, <a href="/wiki/Sign-magnitude" class="mw-redirect" title="Sign-magnitude">sign-magnitude</a>, and <a href="/wiki/Ones%27_complement" title="Ones&#39; complement">ones' complement</a>. </p><p>Some computer languages define integer sizes in a machine-independent way; others have varying definitions depending on the underlying processor word size. Not all language implementations define variables of all integer sizes, and defined sizes may not even be distinct in a particular implementation. An integer in one <a href="/wiki/Programming_language" title="Programming language">programming language</a> may be a different size in a different language, on a different processor, or in an execution context of different bitness; see <a href="#Words">§&#160;Words</a>. </p><p>Some <a href="/wiki/Decimal_computer" title="Decimal computer">older computer architectures</a> used decimal representations of integers, stored in <a href="/wiki/Binary-coded_decimal" title="Binary-coded decimal">binary-coded decimal (BCD)</a> or other format. These values generally require data sizes of 4 bits per decimal digit (sometimes called a <a href="/wiki/Nibble" title="Nibble">nibble</a>), usually with additional bits for a sign. Many modern CPUs provide limited support for decimal integers as an extended datatype, providing instructions for converting such values to and from binary values. Depending on the architecture, decimal integers may have fixed sizes (e.g., 7 decimal digits plus a sign fit into a 32-bit word), or may be variable-length (up to some maximum digit size), typically occupying two digits per byte (octet). </p> <div class="mw-heading mw-heading2"><h2 id="Common_integral_data_types">Common integral data types</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=2" title="Edit section: Common integral data types"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <table class="wikitable"> <tbody><tr> <th rowspan="2">Bits </th> <th rowspan="2">Name </th> <th rowspan="2">Range (assuming <a href="/wiki/Two%27s_complement" title="Two&#39;s complement">two's complement</a> for <a href="/wiki/Signed_number_representations" title="Signed number representations">signed</a>) </th> <th rowspan="2">Decimal digits </th> <th rowspan="2">Uses </th> <th colspan="8" scope="col">Implementations </th></tr> <tr> <th><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>/<a href="/wiki/C%2B%2B" title="C++">C++</a> </th> <th><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a> </th> <th><a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a> and <a href="/wiki/Delphi_(programming_language)" class="mw-redirect" title="Delphi (programming language)">Delphi</a> </th> <th><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a> </th> <th><a href="/wiki/SQL" title="SQL">SQL</a><sup id="cite_ref-notesqla_6-0" class="reference"><a href="#cite_note-notesqla-6"><span class="cite-bracket">&#91;</span>a<span class="cite-bracket">&#93;</span></a></sup> </th> <th><a href="/wiki/FORTRAN" class="mw-redirect" title="FORTRAN">FORTRAN</a> </th> <th><a href="/wiki/D_(programming_language)" title="D (programming language)">D</a> </th> <th><a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a> </th></tr> <tr> <td rowspan="2" style="text-align:right;">4 </td> <td rowspan="2"><a href="/wiki/Nibble" title="Nibble">nibble</a>, semioctet </td> <td><i><a href="/wiki/Signed_number_representations" title="Signed number representations">Signed:</a></i> From −8 to 7, from −(2<sup>3</sup>) to 2<sup>3</sup>&#160;−&#160;1 </td> <td style="text-align:right;">0.9 </td> <td rowspan="2"><a href="/wiki/Binary-coded_decimal" title="Binary-coded decimal">Binary-coded decimal</a>, single decimal digit representation </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td><i>Unsigned:</i> From 0 to 15, which equals 2<sup>4</sup>&#160;−&#160;1 </td> <td style="text-align:right;">1.2 </td></tr> <tr> <td rowspan="2" style="text-align:right;">8 </td> <td rowspan="2"><a href="/wiki/Byte" title="Byte">byte</a>, <a href="/wiki/Octet_(computing)" title="Octet (computing)">octet</a>, i8, u8 </td> <td><i>Signed:</i> From −128 to 127, from −(2<sup>7</sup>) to 2<sup>7</sup>&#160;−&#160;1 </td> <td style="text-align:right;">2.11 </td> <td rowspan="2"><a href="/wiki/ASCII" title="ASCII">ASCII</a> characters, <a href="/wiki/Code_unit" class="mw-redirect" title="Code unit">code units</a> in the <a href="/wiki/UTF-8" title="UTF-8">UTF-8</a> <a href="/wiki/Character_encoding" title="Character encoding">character encoding</a> </td> <td><style data-mw-deduplicate="TemplateStyles:r886049734">.mw-parser-output .monospaced{font-family:monospace,monospace}</style><span class="monospaced">int8_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">signed char</span><sup id="cite_ref-notescb_7-0" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">sbyte</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Shortint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">byte</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">tinyint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">integer(int8)</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">byte</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">i8</span> </td></tr> <tr> <td><i>Unsigned:</i> From 0 to 255, which equals 2<sup>8</sup>&#160;−&#160;1 </td> <td style="text-align:right;">2.41 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint8_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned char</span><sup id="cite_ref-notescb_7-1" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">byte</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Byte</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned tinyint</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ubyte</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">u8</span> </td></tr> <tr> <td rowspan="2" style="text-align:right;">16 </td> <td rowspan="2">halfword, <a href="/wiki/Word_(data_type)" class="mw-redirect" title="Word (data type)">word</a>, short, i16, u16 </td> <td><i>Signed:</i> From −32,768 to 32,767, from −(2<sup>15</sup>) to 2<sup>15</sup>&#160;−&#160;1 </td> <td style="text-align:right;">4.52 </td> <td rowspan="2"><a href="/wiki/Universal_Character_Set" class="mw-redirect" title="Universal Character Set">UCS-2</a> characters, <a href="/wiki/Code_unit" class="mw-redirect" title="Code unit">code units</a> in the <a href="/wiki/UTF-16" title="UTF-16">UTF-16</a> <a href="/wiki/Character_encoding" title="Character encoding">character encoding</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int16_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span><sup id="cite_ref-notescb_7-2" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span><sup id="cite_ref-notescb_7-3" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Smallint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">smallint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">integer(int16)</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">i16</span> </td></tr> <tr> <td><i>Unsigned:</i> From 0 to 65,535, which equals 2<sup>16</sup>&#160;−&#160;1 </td> <td style="text-align:right;">4.82 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint16_t, unsigned</span><sup id="cite_ref-notescb_7-4" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned int</span><sup id="cite_ref-notescb_7-5" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ushort</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Word</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">char</span><sup id="cite_ref-notejavad_8-0" class="reference"><a href="#cite_note-notejavad-8"><span class="cite-bracket">&#91;</span>c<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned smallint</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ushort</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">u16</span> </td></tr> <tr> <td rowspan="2" style="text-align:right;">32 </td> <td rowspan="2">word, <a href="/wiki/Unsigned_long_integer" class="mw-redirect" title="Unsigned long integer">long</a>, doubleword, longword, int, i32, u32 </td> <td><i>Signed:</i> From <a href="/wiki/2147483647_(number)" class="mw-redirect" title="2147483647 (number)">−2,147,483,648 to 2,147,483,647</a>, from −(2<sup>31</sup>) to 2<sup>31</sup>&#160;−&#160;1 </td> <td style="text-align:right;">9.33 </td> <td rowspan="2"><a href="/wiki/UTF-32" title="UTF-32">UTF-32</a> characters, <a href="/wiki/24-bit_color" class="mw-redirect" title="24-bit color">true color</a> with alpha, <a href="/wiki/FourCC" title="FourCC">FourCC</a>, pointers in <a href="/wiki/32-bit_computing" title="32-bit computing">32-bit computing</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int32_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span><sup id="cite_ref-notescb_7-6" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span><sup id="cite_ref-notescb_7-7" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">LongInt</span>; <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Integer</span><sup id="cite_ref-notedelphic_9-0" class="reference"><a href="#cite_note-notedelphic-9"><span class="cite-bracket">&#91;</span>d<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">integer(int32)</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">i32</span> </td></tr> <tr> <td><i>Unsigned:</i> From 0 to 4,294,967,295, which equals 2<sup>32</sup>&#160;−&#160;1 </td> <td style="text-align:right;">9.63 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint32_t, unsigned</span><sup id="cite_ref-notescb_7-8" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned int</span><sup id="cite_ref-notescb_7-9" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned long</span><sup id="cite_ref-notescb_7-10" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">LongWord</span>; <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">DWord</span>; <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Cardinal</span><sup id="cite_ref-notedelphic_9-1" class="reference"><a href="#cite_note-notedelphic-9"><span class="cite-bracket">&#91;</span>d<span class="cite-bracket">&#93;</span></a></sup> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned int</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">u32</span> </td></tr> <tr> <td rowspan="2" style="text-align:right;">64 </td> <td rowspan="2">word, doubleword, longword, long, long long, quad, quadword, qword, int64, i64, u64 </td> <td><i>Signed:</i> From <style data-mw-deduplicate="TemplateStyles:r1038841319">.mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}</style><span class="rt-commentedText tooltip tooltip-dotted" title="−9,223,372,036,854,775,808">−(2<sup>63</sup>)</span> to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1038841319"><span class="rt-commentedText tooltip tooltip-dotted" title="9,223,372,036,854,775,807">2<sup>63</sup>&#160;−&#160;1</span> </td> <td style="text-align:right;">18.96 </td> <td rowspan="2">Time (milliseconds since the <a href="/wiki/Unix_epoch" class="mw-redirect" title="Unix epoch">Unix epoch</a>), pointers in <a href="/wiki/64-bit_computing" title="64-bit computing">64-bit computing</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int64_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span><sup id="cite_ref-notescb_7-11" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long long</span><sup id="cite_ref-notescb_7-12" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Int64</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">bigint</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">integer(int64)</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">i64</span> </td></tr> <tr> <td><i>Unsigned:</i> From 0 to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1038841319"><span class="rt-commentedText tooltip tooltip-dotted" title="18,446,744,073,709,551,615">2<sup>64</sup>&#160;−&#160;1</span> </td> <td style="text-align:right;">19.27 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">uint64_t</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned long long</span><sup id="cite_ref-notescb_7-13" class="reference"><a href="#cite_note-notescb-7"><span class="cite-bracket">&#91;</span>b<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ulong</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">UInt64</span>; <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">QWord</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned bigint</span> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ulong</span> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">u64</span> </td></tr> <tr> <td rowspan="2" style="text-align:right;">128 </td> <td rowspan="2">octaword, double quadword, i128, u128 </td> <td><i>Signed:</i> From <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1038841319"><span class="rt-commentedText tooltip tooltip-dotted" title="−170,141,183,460,469,231,731,687,303,715,884,105,728">−(2<sup>127</sup>)</span> to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1038841319"><span class="rt-commentedText tooltip tooltip-dotted" title="170,141,183,460,469,231,731,687,303,715,884,105,727">2<sup>127</sup>&#160;−&#160;1</span> </td> <td style="text-align:right;">38.23 </td> <td rowspan="2">Complex scientific calculations, <p><a href="/wiki/IPv6" title="IPv6">IPv6</a> addresses, <a href="/wiki/GUID" class="mw-redirect" title="GUID">GUIDs</a> </p> </td> <td rowspan="2">C: only available as non-standard compiler-specific extension </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td rowspan="2" data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">cent</span><sup id="cite_ref-notede_10-0" class="reference"><a href="#cite_note-notede-10"><span class="cite-bracket">&#91;</span>e<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">i128</span> </td></tr> <tr> <td><i>Unsigned:</i> From 0 to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1038841319"><span class="rt-commentedText tooltip tooltip-dotted" title="340,282,366,920,938,463,463,374,607,431,768,211,455">2<sup>128</sup>&#160;−&#160;1</span> </td> <td style="text-align:right;">38.53 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ucent</span><sup id="cite_ref-notede_10-1" class="reference"><a href="#cite_note-notede-10"><span class="cite-bracket">&#91;</span>e<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">u128</span> </td></tr> <tr> <td rowspan="2" style="text-align:right;"><i>n</i> </td> <td rowspan="2"><i>n</i>-bit integer<br /> (general case) </td> <td><i>Signed:</i> −(2<sup><i>n</i>−1</sup>) to (2<sup><i>n</i>−1</sup>&#160;−&#160;1) </td> <td colspan="2">(<i>n</i>&#160;−&#160;1) log<sub>10</sub>&#160;2 </td> <td>C23: <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">_BitInt(n)</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">signed _BitInt(n)</span> </td> <td colspan="7"><a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a>: <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">range -2**(n-1)..2**(n-1)-1</span> </td></tr> <tr> <td><i>Unsigned:</i> 0 to (2<sup><i>n</i></sup> − 1) </td> <td colspan="2"><i>n</i> log<sub>10</sub>&#160;2 </td> <td>C23: <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned _BitInt(n)</span> </td> <td colspan="7">Ada: <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">range 0..2**n-1</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">mod 2**n</span>; standard libraries' or third-party arbitrary arithmetic libraries' BigDecimal or Decimal classes in many languages such as Python, C++, etc. </td></tr></tbody></table> <p>Different <a href="/wiki/CPU" class="mw-redirect" title="CPU">CPUs</a> support different integral data types. Typically, hardware will support both signed and unsigned types, but only a small, fixed set of widths. </p><p>The table above lists integral type widths that are supported in hardware by common processors. High level programming languages provide more possibilities. It is common to have a 'double width' integral type that has twice as many bits as the biggest hardware-supported type. Many languages also have <i>bit-field</i> types (a specified number of bits, usually constrained to be less than the maximum hardware-supported width) and <i>range</i> types (that can represent only the integers in a specified range). </p><p>Some languages, such as <a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a>, <a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a>, <a href="/wiki/REXX" class="mw-redirect" title="REXX">REXX</a>, <a href="/wiki/Haskell" title="Haskell">Haskell</a>, <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, and <a href="/wiki/Raku_(programming_language)" title="Raku (programming language)">Raku</a>, support <i>arbitrary precision</i> integers (also known as <i>infinite precision integers</i> or <i><a href="/wiki/Bignum" class="mw-redirect" title="Bignum">bignums</a></i>). Other languages that do not support this concept as a top-level construct may have libraries available to represent very large numbers using arrays of smaller variables, such as Java's <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BigInteger</span> class or <a href="/wiki/Perl" title="Perl">Perl</a>'s "<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">bigint</span>" package.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> These use as much of the computer's memory as is necessary to store the numbers; however, a computer has only a finite amount of storage, so they, too, can only represent a finite subset of the mathematical integers. These schemes support very large numbers; for example one kilobyte of memory could be used to store numbers up to 2466 decimal digits long. </p><p>A <a href="/wiki/Boolean_data_type" title="Boolean data type">Boolean</a> or <a href="/wiki/Flag_(computing)" class="mw-redirect" title="Flag (computing)">Flag</a> type is a type that can represent only two values: 0 and 1, usually identified with <i>false</i> and <i>true</i> respectively. This type can be stored in memory using a single bit, but is often given a full byte for convenience of addressing and speed of access. </p><p>A four-bit quantity is known as a <i><a href="/wiki/Nibble" title="Nibble">nibble</a></i> (when eating, being smaller than a <i>bite</i>) or <i>nybble</i> (being a pun on the form of the word <i>byte</i>). One nibble corresponds to one digit in <a href="/wiki/Hexadecimal" title="Hexadecimal">hexadecimal</a> and holds one digit or a sign code in binary-coded decimal. </p> <div class="mw-heading mw-heading3"><h3 id="Bytes_and_octets">Bytes and octets</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=3" title="Edit section: Bytes and octets"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Main articles: <a href="/wiki/Byte" title="Byte">Byte</a> and <a href="/wiki/Octet_(computing)" title="Octet (computing)">Octet (computing)</a></div> <p>The term <i>byte</i> initially meant 'the smallest addressable unit of memory'. In the past, 5-, 6-, 7-, 8-, and 9-bit bytes have all been used. There have also been computers that could address individual bits ('bit-addressed machine'), or that could only address 16- or 32-bit quantities ('word-addressed machine'). The term <i>byte</i> was usually not used at all in connection with bit- and word-addressed machines. </p><p>The term <i>octet</i> always refers to an 8-bit quantity. It is mostly used in the field of <a href="/wiki/Computer_network" title="Computer network">computer networking</a>, where computers with different byte widths might have to communicate. </p><p>In modern usage <i>byte</i> almost invariably means eight bits, since all other sizes have fallen into disuse; thus <i>byte</i> has come to be synonymous with <i>octet</i>. </p> <div class="mw-heading mw-heading3"><h3 id="Words">Words</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=4" title="Edit section: Words"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Word_(computer_architecture)" title="Word (computer architecture)">Word (computer architecture)</a></div> <p>The term 'word' is used for a small group of bits that are handled simultaneously by processors of a particular <a href="/wiki/Computer_architecture" title="Computer architecture">architecture</a>. The size of a word is thus CPU-specific. Many different word sizes have been used, including 6-, 8-, 12-, 16-, 18-, 24-, 32-, 36-, 39-, 40-, 48-, 60-, and 64-bit. Since it is architectural, the size of a <i>word</i> is usually set by the first CPU in a family, rather than the characteristics of a later compatible CPU. The meanings of terms derived from <i>word</i>, such as <i>longword</i>, <i>doubleword</i>, <i>quadword</i>, and <i>halfword</i>, also vary with the CPU and OS.<sup id="cite_ref-agnerfog_12-0" class="reference"><a href="#cite_note-agnerfog-12"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </p><p>Practically all new desktop processors are capable of using 64-bit words, though <a href="/wiki/Embedded_system" title="Embedded system">embedded processors</a> with 8- and 16-bit word size are still common. The <a href="/wiki/36-bit_word_length" class="mw-redirect" title="36-bit word length">36-bit word length</a> was common in the early days of computers. </p><p>One important cause of non-portability of software is the incorrect assumption that all computers have the same word size as the computer used by the programmer. For example, if a programmer using the C language incorrectly declares as <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> a variable that will be used to store values greater than 2<sup>15</sup>−1, the program will fail on computers with 16-bit integers. That variable should have been declared as <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span>, which has at least 32 bits on any computer. Programmers may also incorrectly assume that a pointer can be converted to an integer without loss of information, which may work on (some) 32-bit computers, but fail on 64-bit computers with 64-bit pointers and 32-bit integers. This issue is resolved by C99 in <a href="/wiki/Stdint.h" class="mw-redirect" title="Stdint.h">stdint.h</a> in the form of <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">intptr_t</code>. </p><p>The <i>bitness</i> of a program may refer to the word size (or bitness) of the processor on which it runs, or it may refer to the width of a memory address or pointer, which can differ between execution modes or contexts. For example, 64-bit versions of <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a> support existing 32-bit binaries, and programs compiled for Linux's <a href="/wiki/X32_ABI" title="X32 ABI">x32 ABI</a> run in 64-bit mode yet use 32-bit memory addresses.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Standard_integer">Standard integer</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=5" title="Edit section: Standard integer"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The standard integer size is platform-dependent. </p><p>In <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, it is denoted by <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span> and required to be at least 16 bits. Windows and Unix systems have 32-bit <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span>s on both 32-bit and 64-bit architectures. </p> <div class="mw-heading mw-heading3"><h3 id="Short_integer">Short integer</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=6" title="Edit section: Short integer"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A <i>short integer</i> can represent a whole number that may take less storage, while having a smaller range, compared with a standard integer on the same machine. </p><p>In <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, it is denoted by <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span>. It is required to be at least 16 bits, and is often smaller than a standard integer, but this is not required.<sup id="cite_ref-c99_14-0" class="reference"><a href="#cite_note-c99-14"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-drdobbsinteger_15-0" class="reference"><a href="#cite_note-drdobbsinteger-15"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> A conforming program can assume that it can safely store values between −(2<sup>15</sup>−1)<sup id="cite_ref-c-std-6.2.6.2p2_16-0" class="reference"><a href="#cite_note-c-std-6.2.6.2p2-16"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> and 2<sup>15</sup>−1,<sup id="cite_ref-c-std-5.2.4.2.1_17-0" class="reference"><a href="#cite_note-c-std-5.2.4.2.1-17"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> but it may not assume that the range is not larger. In <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, a <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> is <i>always</i> a 16-bit integer. In the <a href="/wiki/Windows_API" title="Windows API">Windows API</a>, the datatype <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">SHORT</span> is defined as a 16-bit signed integer on all machines.<sup id="cite_ref-agnerfog_12-1" class="reference"><a href="#cite_note-agnerfog-12"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </p> <table class="wikitable"> <caption>Common short integer sizes </caption> <tbody><tr> <th><a href="/wiki/Programming_language" title="Programming language">Programming language</a> </th> <th>Data type name </th> <th><a href="/wiki/Signedness" title="Signedness">Signedness</a> </th> <th>Size in <a href="/wiki/Bytes" class="mw-redirect" title="Bytes">bytes</a> </th> <th>Minimum value </th> <th>Maximum value </th></tr> <tr> <td rowspan="2"><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a> and <a href="/wiki/C%2B%2B" title="C++">C++</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td>signed </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">−32,767<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">&#91;</span>f<span class="cite-bracket">&#93;</span></a></sup> </td> <td style="text-align:right;">+32,767 </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">unsigned short</span> </td> <td>unsigned </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">0 </td> <td style="text-align:right;">65,535 </td></tr> <tr> <td rowspan="2"><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td>signed </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">−32,768 </td> <td style="text-align:right;">+32,767 </td></tr> <tr> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">ushort</span> </td> <td>unsigned </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">0 </td> <td style="text-align:right;">65,535 </td></tr> <tr> <td><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span> </td> <td>signed </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">−32,768 </td> <td style="text-align:right;">+32,767 </td></tr> <tr> <td><a href="/wiki/SQL" title="SQL">SQL</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">smallint</span> </td> <td>signed </td> <td style="text-align:right;">2 </td> <td style="text-align:right;">−32,768 </td> <td style="text-align:right;">+32,767 </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Long_integer">Long integer</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=7" title="Edit section: Long integer"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A <i>long integer</i> can represent a whole <a href="/wiki/Integer" title="Integer">integer</a> whose <a href="/wiki/Range_(computer_science)" class="mw-redirect" title="Range (computer science)">range</a> is greater than or equal to that of a standard integer on the same machine. </p><p>In <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, it is denoted by <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span>. It is required to be at least 32 bits, and may or may not be larger than a standard integer. A conforming program can assume that it can safely store values between −(2<sup>31</sup>−1)<sup id="cite_ref-c-std-6.2.6.2p2_16-2" class="reference"><a href="#cite_note-c-std-6.2.6.2p2-16"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> and 2<sup>31</sup>−1,<sup id="cite_ref-c-std-5.2.4.2.1_17-1" class="reference"><a href="#cite_note-c-std-5.2.4.2.1-17"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> but it may not assume that the range is not larger. </p> <table class="wikitable"> <caption>Common long integer sizes </caption> <tbody><tr> <th><a href="/wiki/Programming_language" title="Programming language">Programming language</a> </th> <th>Approval Type </th> <th><a href="/wiki/Computing_platform" title="Computing platform">Platforms</a> </th> <th>Data type name </th> <th>Storage in <a href="/wiki/Bytes" class="mw-redirect" title="Bytes">bytes</a> </th> <th><a href="/wiki/Signedness" title="Signedness">Signed</a> range </th> <th><a href="/wiki/Signedness" title="Signedness">Unsigned</a> range </th></tr> <tr> <td><a href="/wiki/C_(programming)" class="mw-redirect" title="C (programming)">C</a> ISO/ANSI C99 </td> <td>International Standard </td> <td><a href="/wiki/Unix" title="Unix">Unix</a>, 16/32-bit systems<sup id="cite_ref-agnerfog_12-2" class="reference"><a href="#cite_note-agnerfog-12"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup><br /><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a>, 16/32/64-bit systems<sup id="cite_ref-agnerfog_12-3" class="reference"><a href="#cite_note-agnerfog-12"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td>4<br />(minimum requirement 4) </td> <td>−2,147,483,647 to +2,147,483,647 </td> <td>0 to 4,294,967,295<br />(minimum requirement) </td></tr> <tr> <td><a href="/wiki/C_(programming)" class="mw-redirect" title="C (programming)">C</a> ISO/ANSI C99 </td> <td>International Standard </td> <td><a href="/wiki/Unix" title="Unix">Unix</a>,<br />64-bit systems<sup id="cite_ref-agnerfog_12-4" class="reference"><a href="#cite_note-agnerfog-12"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-drdobbsinteger_15-1" class="reference"><a href="#cite_note-drdobbsinteger-15"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td>8<br />(minimum requirement 4) </td> <td>−9,223,372,036,854,775,807 to +9,223,372,036,854,775,807 </td> <td>0 to 18,446,744,073,709,551,615 </td></tr> <tr> <td><a href="/wiki/C%2B%2B" title="C++">C++</a> ISO/ANSI </td> <td>International Standard </td> <td><a href="/wiki/Unix" title="Unix">Unix</a>, <a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a>,<br />16/32-bit system </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td>4 <sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup><br />(minimum requirement 4) </td> <td>−2,147,483,648 to +2,147,483,647<br /> </td> <td>0 to 4,294,967,295<br />(minimum requirement) </td></tr> <tr> <td><a href="/wiki/C%2B%2B/CLI" title="C++/CLI">C++/CLI</a> </td> <td>International Standard<br /><a href="/wiki/ECMA-372" class="mw-redirect" title="ECMA-372">ECMA-372</a> </td> <td><a href="/wiki/Unix" title="Unix">Unix</a>, <a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a>,<br />16/32-bit systems </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td>4 <sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup><br />(minimum requirement 4) </td> <td>−2,147,483,648 to +2,147,483,647<br /> </td> <td>0 to 4,294,967,295<br />(minimum requirement) </td></tr> <tr> <td><a href="/wiki/Visual_Basic_(classic)" title="Visual Basic (classic)">VB</a> </td> <td>Company Standard </td> <td><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Long</span> </td> <td>4 <sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> </td> <td>−2,147,483,648 to +2,147,483,647 </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td><a href="/wiki/Visual_Basic_for_Applications" title="Visual Basic for Applications">VBA</a> </td> <td>Company Standard </td> <td><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a>, <a href="/wiki/Mac_OS_X" class="mw-redirect" title="Mac OS X">Mac OS X</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Long</span> </td> <td>4 <sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> </td> <td>−2,147,483,648 to +2,147,483,647 </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td><a href="/wiki/Microsoft_SQL_Server" title="Microsoft SQL Server">SQL Server</a> </td> <td>Company Standard </td> <td><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BigInt</span> </td> <td>8 </td> <td>−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 </td> <td>0 to 18,446,744,073,709,551,615 </td></tr> <tr> <td><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>/ <a href="/wiki/VB.NET" class="mw-redirect" title="VB.NET">VB.NET</a> </td> <td>ECMA International Standard </td> <td><a href="/wiki/Microsoft_.NET" class="mw-redirect" title="Microsoft .NET">Microsoft .NET</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> or <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Int64</span> </td> <td>8 </td> <td>−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 </td> <td>0 to 18,446,744,073,709,551,615 </td></tr> <tr> <td><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a> </td> <td>International/Company Standard </td> <td><a href="/wiki/Java_platform" class="mw-redirect" title="Java platform">Java platform</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> </td> <td>8 </td> <td>−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td><a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a> </td> <td>? </td> <td><a href="/wiki/Windows" class="mw-redirect" title="Windows">Windows</a>, <a href="/wiki/UNIX" class="mw-redirect" title="UNIX">UNIX</a> </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int64</span> </td> <td>8 </td> <td>−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 </td> <td>0 to 18,446,744,073,709,551,615 (Qword type) </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Long_long">Long long</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=8" title="Edit section: Long long"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">"long long" redirects here. For other uses, see <a href="/wiki/Long_(disambiguation)" class="mw-redirect mw-disambig" title="Long (disambiguation)">Long (disambiguation)</a>.</div> <p>In the <a href="/wiki/C99" title="C99">C99</a> version of the <a href="/wiki/C_programming_language" class="mw-redirect" title="C programming language">C programming language</a> and the <a href="/wiki/C%2B%2B11" title="C++11">C++11</a> version of <a href="/wiki/C%2B%2B" title="C++">C++</a>, a <code>long long</code> type is supported that has double the minimum capacity of the standard <code>long</code>. This type is not supported by compilers that require C code to be compliant with the previous C++ standard, C++03, because the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long long</span> type did not exist in C++03. For an ANSI/ISO compliant compiler, the minimum requirements for the specified ranges, that is, −(2<sup>63</sup>&#8722;1)<sup id="cite_ref-c-std-6.2.6.2p2_16-3" class="reference"><a href="#cite_note-c-std-6.2.6.2p2-16"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> to 2<sup>63</sup>−1 for signed and 0 to 2<sup>64</sup>−1 for unsigned,<sup id="cite_ref-c-std-5.2.4.2.1_17-2" class="reference"><a href="#cite_note-c-std-5.2.4.2.1-17"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> must be fulfilled; however, extending this range is permitted.<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> This can be an issue when exchanging code and data between platforms, or doing direct hardware access. Thus, there are several sets of headers providing platform independent exact width types. The C <a href="/wiki/Standard_library" title="Standard library">standard library</a> provides <i><a href="/wiki/Stdint.h" class="mw-redirect" title="Stdint.h">stdint.h</a></i>; this was introduced in C99 and C++11. </p> <div class="mw-heading mw-heading2"><h2 id="Syntax">Syntax</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=9" title="Edit section: Syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Integer_literal" title="Integer literal">Integer literal</a></div> <p><a href="/wiki/Integer_literal" title="Integer literal">Integer literals</a> can be written as regular <a href="/wiki/Arabic_numerals" title="Arabic numerals">Arabic numerals</a>, consisting of a sequence of digits and with negation indicated by a <a href="/wiki/Hyphen-minus" title="Hyphen-minus">minus sign</a> before the value. However, most programming languages disallow use of commas or spaces for <a href="/wiki/Digit_grouping" class="mw-redirect" title="Digit grouping">digit grouping</a>. Examples of integer literals are: </p> <ul><li><code>42</code></li> <li><code>10000</code></li> <li><code>-233000</code></li></ul> <p>There are several alternate methods for writing integer literals in many programming languages: </p> <ul><li>Many programming languages, especially those influenced by <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a>, prefix an integer literal with <code>0X</code> or <code>0x</code> to represent a <a href="/wiki/Hexadecimal" title="Hexadecimal">hexadecimal</a> value, e.g. <code>0xDEADBEEF</code>. Other languages may use a different notation, e.g. some <a href="/wiki/Assembly_language" title="Assembly language">assembly languages</a> append an <code>H</code> or <code>h</code> to the end of a hexadecimal value.</li> <li><a href="/wiki/Perl" title="Perl">Perl</a>, <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>, <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="/wiki/D_(programming_language)" title="D (programming language)">D</a>, <a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a>, <a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a> and <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> (starting from version 3.6) allow embedded <a href="/wiki/Underscore" title="Underscore">underscores</a> for clarity, e.g. <code>10_000_000</code>, and fixed-form <a href="/wiki/Fortran" title="Fortran">Fortran</a> ignores embedded spaces in integer literals. C (starting from <a href="/wiki/C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a>) and C++ use single quotes for this purpose.</li> <li>In <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a> and <a href="/wiki/C%2B%2B" title="C++">C++</a>, a leading zero indicates an <a href="/wiki/Octal" title="Octal">octal</a> value, e.g. <code>0755</code>. This was primarily intended to be used with <a href="/wiki/Modes_(Unix)" class="mw-redirect" title="Modes (Unix)">Unix modes</a>; however, it has been criticized because normal integers may also lead with zero.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> As such, <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>, <a href="/wiki/Haskell" title="Haskell">Haskell</a>, and <a href="/wiki/OCaml" title="OCaml">OCaml</a> prefix octal values with <code>0O</code> or <code>0o</code>, following the layout used by hexadecimal values.</li> <li>Several languages, including <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>, <a href="/wiki/Scala_(programming_language)" title="Scala (programming language)">Scala</a>, <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>, <a href="/wiki/OCaml" title="OCaml">OCaml</a>, C (starting from C23) and C++ can represent binary values by prefixing a number with <code>0B</code> or <code>0b</code>.</li></ul> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=10" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Arbitrary-precision_arithmetic" title="Arbitrary-precision arithmetic">Arbitrary-precision arithmetic</a></li> <li><a href="/wiki/Binary-coded_decimal" title="Binary-coded decimal">Binary-coded decimal</a> (BCD)</li> <li><a href="/wiki/C_data_types" title="C data types">C data types</a></li> <li><a href="/wiki/Integer_overflow" title="Integer overflow">Integer overflow</a></li> <li><a href="/wiki/Signed_number_representations" title="Signed number representations">Signed number representations</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=11" title="Edit section: Notes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-lower-alpha"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-notesqla-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-notesqla_6-0">^</a></b></span> <span class="reference-text"> Not all SQL dialects have unsigned datatypes.<sup id="cite_ref-SybDT_4-0" class="reference"><a href="#cite_note-SybDT-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-MySQLDT_5-0" class="reference"><a href="#cite_note-MySQLDT-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup></span> </li> <li id="cite_note-notescb-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-notescb_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-notescb_7-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-notescb_7-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-notescb_7-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-notescb_7-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-notescb_7-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-notescb_7-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-notescb_7-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-notescb_7-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-notescb_7-9"><sup><i><b>j</b></i></sup></a> <a href="#cite_ref-notescb_7-10"><sup><i><b>k</b></i></sup></a> <a href="#cite_ref-notescb_7-11"><sup><i><b>l</b></i></sup></a> <a href="#cite_ref-notescb_7-12"><sup><i><b>m</b></i></sup></a> <a href="#cite_ref-notescb_7-13"><sup><i><b>n</b></i></sup></a></span> <span class="reference-text"> The sizes of <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">char</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">short</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span>, <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">long long</span> in C/C++ are dependent upon the implementation of the language.</span> </li> <li id="cite_note-notejavad-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-notejavad_8-0">^</a></b></span> <span class="reference-text"> Java does not directly support arithmetic on <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">char</span> types. The results must be cast back into <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">char</span> from an <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">int</span>.</span> </li> <li id="cite_note-notedelphic-9"><span class="mw-cite-backlink">^ <a href="#cite_ref-notedelphic_9-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-notedelphic_9-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> The sizes of Delphi's <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Integer</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">Cardinal</span> are not guaranteed, varying from platform to platform; usually defined as <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">LongInt</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">LongWord</span> respectively.</span> </li> <li id="cite_note-notede-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-notede_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-notede_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> Reserved for future use. Not implemented yet. </span> </li> <li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text">The ISO C standard allows implementations to reserve the value with sign bit 1 and all other bits 0 (for sign–magnitude and two's complement representation) or with all bits 1 (for ones' complement) for use as a "trap" value, used to indicate (for example) an overflow.<sup id="cite_ref-c-std-6.2.6.2p2_16-1" class="reference"><a href="#cite_note-c-std-6.2.6.2p2-16"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Integer_(computer_science)&amp;action=edit&amp;section=12" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist reflist-columns references-column-width" style="column-width: 30em;"> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFCheever" class="citation web cs1">Cheever, Eric. <a rel="nofollow" class="external text" href="http://www.swarthmore.edu/NatSci/echeeve1/Ref/BinaryMath/NumSys.html">"Representation of numbers"</a>. Swarthmore College<span class="reference-accessdate">. Retrieved <span class="nowrap">2011-09-11</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Representation+of+numbers&amp;rft.pub=Swarthmore+College&amp;rft.aulast=Cheever&amp;rft.aufirst=Eric&amp;rft_id=http%3A%2F%2Fwww.swarthmore.edu%2FNatSci%2Fecheeve1%2FRef%2FBinaryMath%2FNumSys.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMadhusudhan_Konda2011" class="citation web cs1">Madhusudhan Konda (2011-09-02). <a rel="nofollow" class="external text" href="http://radar.oreilly.com/2011/09/java7-features.html">"A look at Java 7's new features - O'Reilly Radar"</a>. Radar.oreilly.com<span class="reference-accessdate">. Retrieved <span class="nowrap">2013-10-15</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=A+look+at+Java+7%27s+new+features+-+O%27Reilly+Radar&amp;rft.pub=Radar.oreilly.com&amp;rft.date=2011-09-02&amp;rft.au=Madhusudhan+Konda&amp;rft_id=http%3A%2F%2Fradar.oreilly.com%2F2011%2F09%2Fjava7-features.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBarr2018" class="citation book cs1">Barr, Adam (2018-10-23). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=BxdxDwAAQBAJ&amp;dq=%22bitness%22&amp;pg=PA268"><i>The Problem with Software: Why Smart Engineers Write Bad Code</i></a>. MIT Press. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-262-34821-8" title="Special:BookSources/978-0-262-34821-8"><bdi>978-0-262-34821-8</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=The+Problem+with+Software%3A+Why+Smart+Engineers+Write+Bad+Code&amp;rft.pub=MIT+Press&amp;rft.date=2018-10-23&amp;rft.isbn=978-0-262-34821-8&amp;rft.aulast=Barr&amp;rft.aufirst=Adam&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DBxdxDwAAQBAJ%26dq%3D%2522bitness%2522%26pg%3DPA268&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-SybDT-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-SybDT_4-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36271.1550/html/blocks/blocks20.htm">"Sybase Adaptive Server Enterprise 15.5: Exact Numeric Datatypes"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Sybase+Adaptive+Server+Enterprise+15.5%3A+Exact+Numeric+Datatypes&amp;rft_id=http%3A%2F%2Finfocenter.sybase.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.sybase.infocenter.dc36271.1550%2Fhtml%2Fblocks%2Fblocks20.htm&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-MySQLDT-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-MySQLDT_5-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://dev.mysql.com/doc/refman/5.6/en/numeric-types.html">"MySQL 5.6 Numeric Datatypes"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=MySQL+5.6+Numeric+Datatypes&amp;rft_id=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.6%2Fen%2Fnumeric-types.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://download.oracle.com/javase/6/docs/api/java/math/BigInteger.html">"BigInteger (Java Platform SE 6)"</a>. Oracle<span class="reference-accessdate">. Retrieved <span class="nowrap">2011-09-11</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=BigInteger+%28Java+Platform+SE+6%29&amp;rft.pub=Oracle&amp;rft_id=http%3A%2F%2Fdownload.oracle.com%2Fjavase%2F6%2Fdocs%2Fapi%2Fjava%2Fmath%2FBigInteger.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-agnerfog-12"><span class="mw-cite-backlink">^ <a href="#cite_ref-agnerfog_12-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-agnerfog_12-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-agnerfog_12-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-agnerfog_12-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-agnerfog_12-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFog2010" class="citation web cs1">Fog, Agner (2010-02-16). <a rel="nofollow" class="external text" href="http://www.agner.org/optimize/calling_conventions.pdf">"Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">2010-08-30</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Calling+conventions+for+different+C%2B%2B+compilers+and+operating+systems%3A+Chapter+3%2C+Data+Representation&amp;rft.date=2010-02-16&amp;rft.aulast=Fog&amp;rft.aufirst=Agner&amp;rft_id=http%3A%2F%2Fwww.agner.org%2Foptimize%2Fcalling_conventions.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFThorsten_Leemhuis2011" class="citation news cs1">Thorsten Leemhuis (2011-09-13). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20111028081253/http://www.h-online.com/open/features/Kernel-Log-x32-ABI-gets-around-64-bit-drawbacks-1342061.html">"Kernel Log: x32 ABI gets around 64-bit drawbacks"</a>. www.h-online.com. Archived from <a rel="nofollow" class="external text" href="http://www.h-online.com/open/features/Kernel-Log-x32-ABI-gets-around-64-bit-drawbacks-1342061.html">the original</a> on 28 October 2011<span class="reference-accessdate">. Retrieved <span class="nowrap">2011-11-01</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.atitle=Kernel+Log%3A+x32+ABI+gets+around+64-bit+drawbacks&amp;rft.date=2011-09-13&amp;rft.au=Thorsten+Leemhuis&amp;rft_id=http%3A%2F%2Fwww.h-online.com%2Fopen%2Ffeatures%2FKernel-Log-x32-ABI-gets-around-64-bit-drawbacks-1342061.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-c99-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-c99_14-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGiguere1987" class="citation web cs1">Giguere, Eric (1987-12-18). <a rel="nofollow" class="external text" href="http://www.ericgiguere.com/articles/ansi-c-summary.html">"The ANSI Standard: A Summary for the C Programmer"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2010-09-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+ANSI+Standard%3A+A+Summary+for+the+C+Programmer&amp;rft.date=1987-12-18&amp;rft.aulast=Giguere&amp;rft.aufirst=Eric&amp;rft_id=http%3A%2F%2Fwww.ericgiguere.com%2Farticles%2Fansi-c-summary.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-drdobbsinteger-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-drdobbsinteger_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-drdobbsinteger_15-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMeyers2000" class="citation web cs1">Meyers, Randy (2000-12-01). <a rel="nofollow" class="external text" href="http://www.drdobbs.com/184401323">"The New C: Integers in C99, Part 1"</a>. drdobbs.com<span class="reference-accessdate">. Retrieved <span class="nowrap">2010-09-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+New+C%3A+Integers+in+C99%2C+Part+1&amp;rft.pub=drdobbs.com&amp;rft.date=2000-12-01&amp;rft.aulast=Meyers&amp;rft.aufirst=Randy&amp;rft_id=http%3A%2F%2Fwww.drdobbs.com%2F184401323&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-c-std-6.2.6.2p2-16"><span class="mw-cite-backlink">^ <a href="#cite_ref-c-std-6.2.6.2p2_16-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-c-std-6.2.6.2p2_16-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-c-std-6.2.6.2p2_16-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-c-std-6.2.6.2p2_16-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf">"ISO/IEC 9899:201x"</a> <span class="cs1-format">(PDF)</span>. open-std.org. section 6.2.6.2, paragraph 2<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-06-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=ISO%2FIEC+9899%3A201x&amp;rft.pages=section+6.2.6.2%2C+paragraph+2&amp;rft.pub=open-std.org&amp;rft_id=http%3A%2F%2Fwww.open-std.org%2FJTC1%2FSC22%2FWG14%2Fwww%2Fdocs%2Fn1570.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-c-std-5.2.4.2.1-17"><span class="mw-cite-backlink">^ <a href="#cite_ref-c-std-5.2.4.2.1_17-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-c-std-5.2.4.2.1_17-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-c-std-5.2.4.2.1_17-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf">"ISO/IEC 9899:201x"</a> <span class="cs1-format">(PDF)</span>. open-std.org. section 5.2.4.2.1<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-06-20</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=ISO%2FIEC+9899%3A201x&amp;rft.pages=section+5.2.4.2.1&amp;rft.pub=open-std.org&amp;rft_id=http%3A%2F%2Fwww.open-std.org%2FJTC1%2FSC22%2FWG14%2Fwww%2Fdocs%2Fn1570.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://cppreference.com/wiki/language/types">"Fundamental types in C++"</a>. cppreference.com<span class="reference-accessdate">. Retrieved <span class="nowrap">5 December</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Fundamental+types+in+C%2B%2B&amp;rft.pub=cppreference.com&amp;rft_id=http%3A%2F%2Fcppreference.com%2Fwiki%2Flanguage%2Ftypes&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-372.pdf">"Chapter 8.6.2 on page 12"</a> <span class="cs1-format">(PDF)</span>. ecma-international.org.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Chapter+8.6.2+on+page+12&amp;rft.pub=ecma-international.org&amp;rft_id=http%3A%2F%2Fwww.ecma-international.org%2Fpublications%2Ffiles%2FECMA-ST%2FECMA-372.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text">VB 6.0 help file</span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn2.microsoft.com/en-us/library/aa164754(office.10).aspx">"The Integer, Long, and Byte Data Types (VBA)"</a>. microsoft.com<span class="reference-accessdate">. Retrieved <span class="nowrap">2006-12-19</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+Integer%2C+Long%2C+and+Byte+Data+Types+%28VBA%29&amp;rft.pub=microsoft.com&amp;rft_id=http%3A%2F%2Fmsdn2.microsoft.com%2Fen-us%2Flibrary%2Faa164754%28office.10%29.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGiguere1987" class="citation web cs1">Giguere, Eric (December 18, 1987). <a rel="nofollow" class="external text" href="http://www.ericgiguere.com/articles/ansi-c-summary.html">"The ANSI Standard: A Summary for the C Programmer"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2010-09-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+ANSI+Standard%3A+A+Summary+for+the+C+Programmer&amp;rft.date=1987-12-18&amp;rft.aulast=Giguere&amp;rft.aufirst=Eric&amp;rft_id=http%3A%2F%2Fwww.ericgiguere.com%2Farticles%2Fansi-c-summary.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20100822072551/http://flash-gordon.me.uk/ansi.c.txt">"American National Standard Programming Language C specifies the syntax and semantics of programs written in the C programming language"</a>. Archived from <a rel="nofollow" class="external text" href="http://flash-gordon.me.uk/ansi.c.txt">the original</a> on 2010-08-22<span class="reference-accessdate">. Retrieved <span class="nowrap">2010-09-04</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=American+National+Standard+Programming+Language+C+specifies+the+syntax+and+semantics+of+programs+written+in+the+C+programming+language.&amp;rft_id=http%3A%2F%2Fflash-gordon.me.uk%2Fansi.c.txt&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3AInteger+%28computer+science%29" class="Z3988"></span></span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text">ECMAScript 6th Edition draft: <a rel="nofollow" class="external free" href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals">https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-literals</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20131216202526/https://people.mozilla.org/~jorendorff/es6-draft.html">Archived</a> 2013-12-16 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a></span> </li> </ol></div> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Data_types" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Data_types" title="Template:Data types"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Data_types" title="Template talk:Data types"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Data_types" title="Special:EditPage/Template:Data types"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Data_types" style="font-size:114%;margin:0 4em"><a href="/wiki/Data_type" title="Data type">Data types</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Units_of_information" title="Units of information">Uninterpreted</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Bit" title="Bit">Bit</a></li> <li><a href="/wiki/Byte" title="Byte">Byte</a></li> <li><a href="/wiki/Ternary_numeral_system" title="Ternary numeral system">Trit</a></li> <li><a href="/wiki/Ternary_numeral_system#Tryte" title="Ternary numeral system">Tryte</a></li> <li><a href="/wiki/Word_(computer_architecture)" title="Word (computer architecture)">Word</a></li> <li><a href="/wiki/Bit_array" title="Bit array">Bit array</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Numeric</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Arbitrary-precision_arithmetic" title="Arbitrary-precision arithmetic">Arbitrary-precision or bignum</a></li> <li><a href="/wiki/Complex_data_type" title="Complex data type">Complex</a></li> <li><a href="/wiki/Decimal_data_type" title="Decimal data type">Decimal</a></li> <li><a href="/wiki/Fixed-point_arithmetic" title="Fixed-point arithmetic">Fixed point</a></li> <li><a href="/wiki/Floating-point_arithmetic" title="Floating-point arithmetic">Floating point</a> <ul><li>Reduced precision <ul><li><a href="/wiki/Minifloat" title="Minifloat">Minifloat</a></li> <li><a href="/wiki/Half-precision_floating-point_format" title="Half-precision floating-point format">Half precision</a></li> <li><a href="/wiki/Bfloat16_floating-point_format" title="Bfloat16 floating-point format">bfloat16</a></li></ul></li> <li><a href="/wiki/Single-precision_floating-point_format" title="Single-precision floating-point format">Single precision</a></li> <li><a href="/wiki/Double-precision_floating-point_format" title="Double-precision floating-point format">Double precision</a></li> <li><a href="/wiki/Quadruple-precision_floating-point_format" title="Quadruple-precision floating-point format">Quadruple precision</a></li> <li><a href="/wiki/Octuple-precision_floating-point_format" title="Octuple-precision floating-point format">Octuple precision</a></li> <li><a href="/wiki/Extended_precision" title="Extended precision">Extended precision</a> <ul><li><a href="/wiki/Long_double" title="Long double">Long double</a></li></ul></li></ul></li> <li><a class="mw-selflink selflink">Integer</a> <ul><li><a href="/wiki/Signedness" title="Signedness">signedness</a></li></ul></li> <li><a href="/wiki/Interval_arithmetic#Implementations" title="Interval arithmetic">Interval</a></li> <li><a href="/wiki/Rational_data_type" title="Rational data type">Rational</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">Pointer</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Memory_address" title="Memory address">Address</a> <ul><li><a href="/wiki/Physical_address" title="Physical address">physical</a></li> <li><a href="/wiki/Virtual_address_space" title="Virtual address space">virtual</a></li></ul></li> <li><a href="/wiki/Reference_(computer_science)" title="Reference (computer science)">Reference</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Plain_text" title="Plain text">Text</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Character_(computing)" title="Character (computing)">Character</a></li> <li><a href="/wiki/String_(computer_science)" title="String (computer science)">String</a> <ul><li><a href="/wiki/Null-terminated_string" title="Null-terminated string">null-terminated</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Composite_data_type" title="Composite data type">Composite</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Algebraic_data_type" title="Algebraic data type">Algebraic data type</a> <ul><li><a href="/wiki/Generalized_algebraic_data_type" title="Generalized algebraic data type">generalized</a></li></ul></li> <li><a href="/wiki/Array_data_type" class="mw-redirect" title="Array data type">Array</a></li> <li><a href="/wiki/Associative_array" title="Associative array">Associative array</a></li> <li><a href="/wiki/Class_(computer_programming)" title="Class (computer programming)">Class</a></li> <li><a href="/wiki/Dependent_type" title="Dependent type">Dependent</a></li> <li><a href="/wiki/Intuitionistic_type_theory#Equality_type" title="Intuitionistic type theory">Equality</a></li> <li><a href="/wiki/Inductive_type" title="Inductive type">Inductive</a></li> <li><a href="/wiki/Intersection_type" title="Intersection type">Intersection</a></li> <li><a href="/wiki/List_(abstract_data_type)" title="List (abstract data type)">List</a></li> <li><a href="/wiki/Object_(computer_science)" title="Object (computer science)">Object</a> <ul><li><a href="/wiki/Metaobject" title="Metaobject">metaobject</a></li></ul></li> <li><a href="/wiki/Option_type" title="Option type">Option type</a></li> <li><a href="/wiki/Product_type" title="Product type">Product</a></li> <li><a href="/wiki/Record_(computer_science)" title="Record (computer science)">Record or Struct</a></li> <li><a href="/wiki/Refinement_type" title="Refinement type">Refinement</a></li> <li><a href="/wiki/Set_(abstract_data_type)" title="Set (abstract data type)">Set</a></li> <li><a href="/wiki/Union_type" title="Union type">Union</a> <ul><li><a href="/wiki/Tagged_union" title="Tagged union">tagged</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Boolean_data_type" title="Boolean data type">Boolean</a></li> <li><a href="/wiki/Bottom_type" title="Bottom type">Bottom type</a></li> <li><a href="/wiki/Container_(abstract_data_type)" title="Container (abstract data type)">Collection</a></li> <li><a href="/wiki/Enumerated_type" title="Enumerated type">Enumerated type</a></li> <li><a href="/wiki/Exception_handling" title="Exception handling">Exception</a></li> <li><a href="/wiki/Function_type" title="Function type">Function type</a></li> <li><a href="/wiki/Opaque_data_type" title="Opaque data type">Opaque data type</a></li> <li><a href="/wiki/Recursive_data_type" title="Recursive data type">Recursive data type</a></li> <li><a href="/wiki/Semaphore_(programming)" title="Semaphore (programming)">Semaphore</a></li> <li><a href="/wiki/Stream_(computing)" title="Stream (computing)">Stream</a></li> <li><a href="/wiki/Strongly_typed_identifier" title="Strongly typed identifier">Strongly typed identifier</a></li> <li><a href="/wiki/Top_type" title="Top type">Top type</a></li> <li><a href="/wiki/Type_class" title="Type class">Type class</a></li> <li><a href="/wiki/Empty_type" title="Empty type">Empty type</a></li> <li><a href="/wiki/Unit_type" title="Unit type">Unit type</a></li> <li><a href="/wiki/Void_type" title="Void type">Void</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Related<br />topics</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Abstract_data_type" title="Abstract data type">Abstract data type</a></li> <li><a href="/wiki/Boxing_(computer_science)" class="mw-redirect" title="Boxing (computer science)">Boxing</a></li> <li><a href="/wiki/Data_structure" title="Data structure">Data structure</a></li> <li><a href="/wiki/Generic_programming" title="Generic programming">Generic</a></li> <li><a href="/wiki/Kind_(type_theory)" title="Kind (type theory)">Kind</a> <ul><li><a href="/wiki/Metaclass" title="Metaclass">metaclass</a></li></ul></li> <li><a href="/wiki/Parametric_polymorphism" title="Parametric polymorphism">Parametric polymorphism</a></li> <li><a href="/wiki/Primitive_data_type" title="Primitive data type">Primitive data type</a></li> <li><a href="/wiki/Interface_(object-oriented_programming)" title="Interface (object-oriented programming)">Interface</a></li> <li><a href="/wiki/Subtyping" title="Subtyping">Subtyping</a></li> <li><a href="/wiki/Type_constructor" title="Type constructor">Type constructor</a></li> <li><a href="/wiki/Type_conversion" title="Type conversion">Type conversion</a></li> <li><a href="/wiki/Type_system" title="Type system">Type system</a></li> <li><a href="/wiki/Type_theory" title="Type theory">Type theory</a></li> <li><a href="/wiki/Variable_(computer_science)" title="Variable (computer science)">Variable</a></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f69cdc8f6‐zlb24 Cached time: 20241122190230 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.543 seconds Real time usage: 0.649 seconds Preprocessor visited node count: 6293/1000000 Post‐expand include size: 80312/2097152 bytes Template argument size: 10452/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 8/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 100994/5000000 bytes Lua time usage: 0.251/10.000 seconds Lua memory usage: 5444550/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 538.011 1 -total 38.04% 204.634 2 Template:Reflist 26.23% 141.107 15 Template:Cite_web 16.77% 90.210 1 Template:Data_types 16.31% 87.761 1 Template:Navbox 12.34% 66.399 1 Template:Short_description 9.27% 49.872 123 Template:Mono 7.78% 41.876 2 Template:Pagetype 6.63% 35.687 123 Template:Ifsubst 4.98% 26.804 1 Template:Notelist --> <!-- Saved in parser cache with key enwiki:pcache:idhash:14794-0!canonical and timestamp 20241122190230 and revision id 1258985112. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Integer_(computer_science)&amp;oldid=1258985112#Long_integer">https://en.wikipedia.org/w/index.php?title=Integer_(computer_science)&amp;oldid=1258985112#Long_integer</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Data_types" title="Category:Data types">Data types</a></li><li><a href="/wiki/Category:Computer_arithmetic" title="Category:Computer arithmetic">Computer arithmetic</a></li><li><a href="/wiki/Category:Primitive_types" title="Category:Primitive types">Primitive types</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 22 November 2024, at 19:02<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Integer_(computer_science)&amp;mobileaction=toggle_view_mobile#Long_integer" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-4qzqr","wgBackendResponseTime":135,"wgPageParseReport":{"limitreport":{"cputime":"0.543","walltime":"0.649","ppvisitednodes":{"value":6293,"limit":1000000},"postexpandincludesize":{"value":80312,"limit":2097152},"templateargumentsize":{"value":10452,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":8,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":100994,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 538.011 1 -total"," 38.04% 204.634 2 Template:Reflist"," 26.23% 141.107 15 Template:Cite_web"," 16.77% 90.210 1 Template:Data_types"," 16.31% 87.761 1 Template:Navbox"," 12.34% 66.399 1 Template:Short_description"," 9.27% 49.872 123 Template:Mono"," 7.78% 41.876 2 Template:Pagetype"," 6.63% 35.687 123 Template:Ifsubst"," 4.98% 26.804 1 Template:Notelist"]},"scribunto":{"limitreport-timeusage":{"value":"0.251","limit":"10.000"},"limitreport-memusage":{"value":5444550,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-zlb24","timestamp":"20241122190230","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Integer (computer science)","url":"https:\/\/en.wikipedia.org\/wiki\/Integer_(computer_science)#Long_integer","sameAs":"http:\/\/www.wikidata.org\/entity\/Q729138","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q729138","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2001-09-15T21:54:28Z","dateModified":"2024-11-22T19:02:28Z","headline":"datum of integral data type"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10