Knowledge

Primitive data type

Source 📝

1931: 874:
Built-in types are distinguished from others by having specific support in the compiler or runtime, to the extent that it would not be possible to simply define them in a header file or standard library module. Besides integers, floating-point numbers, and Booleans, other built-in types include:
80:
logical values. Operations on such types are usually quite efficient. Primitive data types which are native to the processor have a one-to-one correspondence with objects in the computer's memory, and operations on these types are often the fastest possible in most cases. Integer addition, for
1205:
The term "string" also does not always refer to a sequence of Unicode characters, instead referring to a sequence of bytes. For example, x86-64 has "string" instructions to move, set, search, or compare a sequence of items, where an item could be 1, 2, 4, or 8 bytes long.
81:
example, can be performed as a single machine instruction, and some offer specific instructions to process sequences of characters with a single instruction. But the choice of primitive data type may affect performance, for example it is faster using
35:, which all compiled programs must use. Most processors support a similar set of primitive data types, although the specific representations vary. More generally, "primitive data types" may refer to the standard data types built into a 348:
that can have either the value "true" or the value "false". Although only one bit is necessary to accommodate the value set "true" and "false", programming languages typically implement Boolean types as one or more bytes.
372:
at times to give extended semantics to Booleans and Boolean expressions or to achieve backwards compatibility with earlier versions of the language. For example, early versions of the C programming language that followed
1177:
Some languages have "character" types that are too small to represent all Unicode characters. These are more properly categorized as integer types that have been given a misleading name. For example C includes a
710:: a QName declared as a notation in the schema. Notations are used to embed non-XML data types. This type cannot be used directly - only derived types that enumerate a limited set of QNames may be used. 747:, the primitive data types consist of 4 integral types, 2 floating-point types, a 16-byte decimal type, a Boolean type, a date/time type, a Unicode character type, and a Unicode string type. 377:
and its former standards did not have a dedicated Boolean type. Instead, numeric values of zero are interpreted as "false", and any other value is interpreted as "true". The newer
1150:, hence must be at least 21 bits wide. Some languages such as Julia include a true 32-bit Unicode character type as primitive. Other languages such as 732: 31:
from which all other data types are constructed. Specifically it often refers to the limited set of data representations in use by a particular
1659: 1777: 719:
In JavaScript, there are 7 primitive data types: string, number, bigint, boolean, symbol, undefined, and null. Their values are considered
1563:
Lindholm, Tim; Yellin, Frank; Bracha, Gilad; Buckley, Alex (13 February 2015). "Chapter 2. The Structure of the Java Virtual Machine".
493:, a value referring to an executable memory address. This is not accessible from the Java programming language and is usually left out. 2084: 2455: 2089: 2079: 2074: 1618: 1591: 1377: 1350: 1323: 1293: 1266: 2062: 1963: 1763: 1425: 858: 2240: 1496: 1935: 318:
numbers are exactly representable; other numbers can be represented only approximately. Many languages have both a
2213: 1836: 2330: 2135: 2067: 2029: 1643: 1127: 1071: 1016: 1001: 943: 231: 1155: 1041: 1012: 978: 939: 935: 922: 910: 724: 357: 134: 1220: 2230: 2160: 2008: 1066: 952: 918: 914: 468: 194: 104: 1564: 2485: 2120: 1235: 1199: 1159: 1123: 1090: 1045: 423: 353: 1182:
type, but it is defined to be the smallest addressable unit of memory, which several standards (such as
2108: 1475: 1444:"Calling conventions for different C++ compilers and operating systems: Chapter 3, Data Representation" 1107: 1053: 450: 361: 100: 94: 69: 1724: 2418: 2370: 2282: 2260: 2255: 2183: 2049: 2003: 1167: 1115: 1061: 1025: 986: 927: 890: 848: 584: 285: 2511: 2292: 1956: 1880: 1111: 1057: 1029: 982: 167: 1854: 1697: 2445: 2360: 1230: 32: 107:
of mathematical integers. Integers may be either signed (allowing negative values) or unsigned (
2188: 2044: 1998: 1099: 948: 728: 298:
that may have a fractional part. These numbers are stored internally in a format equivalent to
1905: 1749: 1283: 2178: 2153: 1673: 1608: 1581: 1488: 1367: 1340: 1256: 1143: 573: 303: 1397: 1313: 1980: 1480: 1095: 1086: 819:
which are unsigned and signed integers that are the same bit width as a reference with the
544:
mean that C contains numerous target-dependent integer and floating-point primitive types.
108: 68:
The most common primitive types are those used and supported by computer hardware, such as
36: 8: 2506: 2428: 2355: 2208: 2200: 1949: 1812: 1174:
encoding. Strings with a length of one are normally used to represent single characters.
299: 138: 48: 1443: 2433: 2413: 2365: 2340: 2125: 2094: 1653: 1215: 1147: 992: 956: 865:'s codepoint but only values that correspond to a valid unicode scalar value are valid. 861:. Under the hood these are unsigned 32-bit integers with values that correspond to the 588: 509: 503: 368:
as a distinct logical type. Some languages, though, may implicitly convert Booleans to
2320: 2250: 2225: 2039: 2034: 1639: 1614: 1587: 1537: 1492: 1373: 1346: 1319: 1289: 1262: 1021: 962: 834: 744: 597: 477: 335: 159: 77: 2465: 2350: 2148: 323: 319: 20: 2470: 2335: 2287: 2220: 1466: 315: 295: 2423: 2245: 2235: 2143: 1470: 620: 464: 291: 73: 2500: 2345: 1484: 662: 1634:
Kernighan, Brian W.; Ritchie, Dennis M. (1988). "2.2 Data Types and Sizes".
2302: 2277: 1583:
Essential Java Fast: How to write object oriented software for the Internet
341: 1426:"Single Instruction Single Data - an overview | ScienceDirect Topics" 755:
Rust has primitive unsigned and signed fixed width integers in the format
310:. Because floating-point numbers have limited precision, only a subset of 2480: 2475: 2325: 2272: 2099: 1225: 1008: 996: 974: 931: 906: 680: 676: 311: 989:. This is two floating-point numbers, a real part and an imaginary part. 823:
type being used for indices into arrays and indexable collection types.
2385: 2380: 2297: 2265: 2170: 2113: 1151: 1103: 1049: 57: 763:
respectively followed by any bit width that is a power of two between
2460: 2438: 2395: 2390: 2057: 2013: 1972: 1750:"Primitive - MDN Web Docs Glossary: Definitions of Web-related terms" 1512: 885: 880: 720: 398: 28: 1725:"Declaring a NOTATION | Understanding XML Document Type Definitions" 16:
An extremely basic/core data type provided by a programming language
2375: 171: 1369:
Visual Basic .NET Class Design Handbook: Coding Effective Classes
970: 606: 307: 1930: 684: 374: 264: 1941: 1183: 1171: 1163: 1119: 902: 702: 409:
as a built-in type and "true" and "false" as reserved words.
402: 235: 1366:
Olsen, Geir; Allison, Damon; Speer, James (1 January 2008).
85:
operations and data types to operate on an array of floats.
1993: 1562: 1131: 1033: 426:
virtual machine's set of primitive data types consists of:
155: 118: 82: 1988: 1187: 1037: 966: 731:; however, all primitives except undefined and null have 693: 545: 378: 270:−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 191: 125: 43:). Data types which are not primitive are referred to as 344:, typically denoted "bool" or "boolean", is typically a 1166:
do not have a primitive character type but instead add
512:
is similar to Java's. Minimally, there are four types,
1638:(Second ed.). Englewood Cliffs, N.J. p. 36. 1610:
A Hand Book of Objected Oriented Programming With Java
1288:. Springer Science & Business Media. p. 101. 1586:. Springer Science & Business Media. p. 27. 1607:
Rakshit, Sandip; Panigrahi, Goutam (December 1995).
576:
language provides a set of 19 primitive data types:
1202:, but again this is not a Unicode character type. 1365: 2498: 1633: 1606: 1465: 1281: 364:) implement Booleans adhering to the concept of 1282:Wikander, Jan; Svensson, Bertil (31 May 1998). 60:, but composite types may also be value types. 1315:Data and File Structure (For GTU), 2nd Edition 1255:Stone, R. G.; Cooke, D. J. (5 February 1987). 1190:. Recent versions of these standards refer to 1170:as a primitive data type, typically using the 63: 1957: 1285:Real-Time Systems in Mechatronic Applications 548:extended this set by adding the Boolean type 1813:"Data Types - The Rust Programming Language" 1764:"JavaScript data types and data structures" 1666: 1413:Integer operations are fast in most cases, 896: 1964: 1950: 1658:: CS1 maint: location missing publisher ( 1437: 1435: 1345:. Prentice Hall Professional. p. 77. 1261:. Cambridge University Press. p. 18. 1254: 1198:is also used for a 16-bit integer type in 1695: 1307: 1305: 1221:List of data structures § Data types 1137: 279: 263:for most modern C compilers, pointer for 1722: 1566:The Java® Virtual Machine Specification 1432: 1391: 1389: 2499: 1723:Phillips, Lee Anne (18 January 2002). 1579: 1302: 1146:type is a type that can represent all 294:number represents a limited-precision 1945: 1807: 1805: 1803: 1801: 1799: 1318:. Vikas Publishing House. p. 2. 556:to be used twice in combination with 412: 1675:ISO/IEC 9899:1999 specification, TC3 1386: 1338: 738: 723:. These are not objects and have no 255:x86 quadruple word, minimum size of 1613:. S. Chand Publishing. p. 11. 1441: 1311: 13: 1796: 88: 56:Primitive types are almost always 14: 2523: 1923: 1881:"The char Type in Java is Broken" 1696:Biron, Paul V.; Malhotra, Ashok. 1580:Cowell, John (18 February 1997). 869: 241:−2,147,483,648 to +2,147,483,647 222:x86 double word, minimum size of 1929: 497: 273:0 to 18,446,744,073,709,551,615 1898: 1872: 1847: 1829: 1770: 1756: 1742: 1716: 1689: 1627: 1600: 1573: 1556: 1530: 1505: 1395: 811:. Also available are the types 504:C data types § Basic types 453:types with a variety of ranges) 1971: 1855:"Strings · The Julia Language" 1698:"XML Schema Part 2: Datatypes" 1513:"Boolean type support library" 1459: 1418: 1359: 1332: 1275: 1248: 381:added a distinct Boolean type 326:type (often called "double"). 1: 2030:Arbitrary-precision or bignum 1906:"I/O and string instructions" 1241: 714: 567: 322:(often called "float") and a 230:for most modern C compilers, 1879:Mansoor, Umer (8 May 2016). 1398:"Optimizing software in C++" 1118:, and in newer standards of 895:Characters and strings (see 605:: a number represented with 7: 1236:Variable (computer science) 1209: 329: 64:Common primitive data types 10: 2528: 1636:The C programming language 1476:The C Programming Language 955:and a programmer-selected 552:and allowing the modifier 501: 333: 283: 111:only). Common ranges are: 103:data type represents some 95:Integer (computer science) 92: 2404: 2371:Strongly typed identifier 2313: 2199: 2169: 2134: 2022: 1979: 1442:Fog, Agner (2010-02-16). 480:type with logical values 385:(the more intuitive name 286:Floating-point arithmetic 2446:Parametric polymorphism 1778:"Types in Visual Basic" 1538:"Bool data type in C++" 1342:Core Python Programming 1231:Primitive wrapper class 1162:, and many dialects of 750: 467:with single and double 417: 267:-compatible processors 238:-compatible processors 1878: 1837:"Built-in types (C++)" 1372:. Apress. p. 80. 1138:Characters and strings 883:and null pointer type 849:floating point numbers 465:floating-point numbers 389:as well as the macros 280:Floating-point numbers 1339:Chun, Wesley (2001). 574:XML Schema Definition 528:, but the qualifiers 397:can be included with 352:Many languages (e.g. 259:in C, actual size of 226:in C, actual size of 109:non-negative integers 1938:at Wikimedia Commons 1481:Englewood Cliffs, NJ 1258:Program Construction 1096:First-class function 37:programming language 25:primitive data types 2451:Primitive data type 2356:Recursive data type 2209:Algebraic data type 2085:Quadruple precision 1841:learn.microsoft.com 1784:. 18 September 2021 1766:. MDN. 9 July 2024. 1752:. MDN. 8 June 2023. 1194:as a numeric type. 1002:Arbitrary-precision 589:Unicode code points 300:scientific notation 244:0 to 4,294,967,295 208:−32,768 to +32,767 27:are a set of basic 2414:Abstract data type 2095:Extended precision 2054:Reduced precision 1859:docs.julialang.org 1681:. p. 255, § 6.2.5 1467:Kernighan, Brian W 1216:Language primitive 1186:) require to be 8 1148:Unicode characters 1022:Associative arrays 951:with a variety of 949:Fixed-point number 847:for 32 and 64-bit 413:Specific languages 197:, minimum size of 162:, minimum size of 72:of various sizes, 2494: 2493: 2226:Associative array 2090:Octuple precision 1934:Media related to 1843:. 17 August 2021. 1817:doc.rust-lang.org 1704:(Second ed.) 1620:978-81-219-3001-7 1593:978-3-540-76052-8 1471:Ritchie, Dennis M 1379:978-1-4302-0780-1 1352:978-0-13-026036-9 1325:978-93-259-6005-3 1295:978-0-7923-8159-4 1268:978-0-521-31883-9 859:unicode character 771:giving the types 745:Visual Basic .NET 739:Visual Basic .NET 508:The set of basic 336:Boolean data type 306:but sometimes in 277: 276: 2519: 2466:Type constructor 2351:Opaque data type 2283:Record or Struct 2080:Double precision 2075:Single precision 1966: 1959: 1952: 1943: 1942: 1933: 1917: 1916: 1914: 1912: 1902: 1896: 1895: 1893: 1891: 1876: 1870: 1869: 1867: 1865: 1851: 1845: 1844: 1833: 1827: 1826: 1824: 1823: 1809: 1794: 1793: 1791: 1789: 1774: 1768: 1767: 1760: 1754: 1753: 1746: 1740: 1739: 1737: 1735: 1729:www.informit.com 1720: 1714: 1713: 1711: 1709: 1693: 1687: 1686: 1680: 1670: 1664: 1663: 1657: 1649: 1631: 1625: 1624: 1604: 1598: 1597: 1577: 1571: 1570: 1560: 1554: 1553: 1551: 1549: 1534: 1528: 1527: 1525: 1523: 1509: 1503: 1502: 1479:(1st ed.). 1463: 1457: 1456: 1454: 1453: 1448: 1439: 1430: 1429: 1422: 1416: 1415: 1410: 1408: 1402: 1393: 1384: 1383: 1363: 1357: 1356: 1336: 1330: 1329: 1312:Khurana, Rohit. 1309: 1300: 1299: 1279: 1273: 1272: 1252: 1197: 1193: 1181: 1006: 888: 864: 856: 846: 842: 832: 822: 818: 814: 810: 806: 802: 798: 794: 790: 786: 782: 778: 774: 770: 766: 762: 758: 709: 700: 691: 674: 670: 660: 656: 652: 648: 644: 640: 636: 632: 628: 618: 614: 604: 595: 587:, a sequence of 582: 563: 559: 555: 551: 543: 539: 535: 531: 527: 523: 519: 515: 492: 487: 483: 475: 462: 458: 448: 444: 440: 436: 432: 408: 396: 392: 388: 384: 324:double precision 320:single precision 262: 258: 229: 225: 204: 200: 165: 141:representation) 139:two's complement 114: 113: 21:computer science 2527: 2526: 2522: 2521: 2520: 2518: 2517: 2516: 2512:Primitive types 2497: 2496: 2495: 2490: 2471:Type conversion 2406: 2400: 2336:Enumerated type 2309: 2195: 2189:null-terminated 2165: 2130: 2018: 1975: 1970: 1936:Primitive types 1926: 1921: 1920: 1910: 1908: 1904: 1903: 1899: 1889: 1887: 1877: 1873: 1863: 1861: 1853: 1852: 1848: 1835: 1834: 1830: 1821: 1819: 1811: 1810: 1797: 1787: 1785: 1776: 1775: 1771: 1762: 1761: 1757: 1748: 1747: 1743: 1733: 1731: 1721: 1717: 1707: 1705: 1694: 1690: 1678: 1672: 1671: 1667: 1651: 1650: 1646: 1632: 1628: 1621: 1605: 1601: 1594: 1578: 1574: 1561: 1557: 1547: 1545: 1536: 1535: 1531: 1521: 1519: 1511: 1510: 1506: 1499: 1464: 1460: 1451: 1449: 1446: 1440: 1433: 1424: 1423: 1419: 1406: 1404: 1400: 1394: 1387: 1380: 1364: 1360: 1353: 1337: 1333: 1326: 1310: 1303: 1296: 1280: 1276: 1269: 1253: 1249: 1244: 1212: 1195: 1191: 1179: 1140: 1069:(also called a 1004: 993:Rational number 884: 872: 862: 854: 844: 840: 830: 826:Rust also has: 820: 816: 812: 808: 804: 800: 796: 792: 788: 784: 780: 776: 772: 768: 764: 760: 756: 753: 741: 733:object wrappers 717: 707: 698: 689: 672: 668: 658: 654: 650: 646: 642: 638: 634: 630: 626: 616: 612: 602: 593: 580: 570: 561: 557: 553: 549: 541: 537: 533: 529: 525: 521: 517: 513: 506: 500: 490: 485: 481: 473: 460: 456: 446: 442: 438: 434: 430: 420: 415: 406: 394: 390: 386: 382: 338: 332: 302:, typically in 296:rational number 288: 282: 260: 256: 227: 223: 202: 198: 163: 144:Unsigned range 97: 91: 89:Integer numbers 66: 17: 12: 11: 5: 2525: 2515: 2514: 2509: 2492: 2491: 2489: 2488: 2483: 2478: 2473: 2468: 2463: 2458: 2453: 2448: 2443: 2442: 2441: 2431: 2426: 2424:Data structure 2421: 2416: 2410: 2408: 2402: 2401: 2399: 2398: 2393: 2388: 2383: 2378: 2373: 2368: 2363: 2358: 2353: 2348: 2343: 2338: 2333: 2328: 2323: 2317: 2315: 2311: 2310: 2308: 2307: 2306: 2305: 2295: 2290: 2285: 2280: 2275: 2270: 2269: 2268: 2258: 2253: 2248: 2243: 2238: 2233: 2228: 2223: 2218: 2217: 2216: 2205: 2203: 2197: 2196: 2194: 2193: 2192: 2191: 2181: 2175: 2173: 2167: 2166: 2164: 2163: 2158: 2157: 2156: 2151: 2140: 2138: 2132: 2131: 2129: 2128: 2123: 2118: 2117: 2116: 2106: 2105: 2104: 2103: 2102: 2092: 2087: 2082: 2077: 2072: 2071: 2070: 2065: 2063:Half precision 2060: 2050:Floating point 2047: 2042: 2037: 2032: 2026: 2024: 2020: 2019: 2017: 2016: 2011: 2006: 2001: 1996: 1991: 1985: 1983: 1977: 1976: 1969: 1968: 1961: 1954: 1946: 1940: 1939: 1925: 1924:External links 1922: 1919: 1918: 1897: 1871: 1846: 1828: 1795: 1782:Microsoft Docs 1769: 1755: 1741: 1715: 1688: 1665: 1644: 1626: 1619: 1599: 1592: 1572: 1555: 1529: 1504: 1497: 1458: 1431: 1417: 1385: 1378: 1358: 1351: 1331: 1324: 1301: 1294: 1274: 1267: 1246: 1245: 1243: 1240: 1239: 1238: 1233: 1228: 1223: 1218: 1211: 1208: 1139: 1136: 1135: 1134: 1093: 1084: 1064: 1019: 999: 990: 963:Complex number 960: 946: 925: 900: 893: 871: 870:Built-in types 868: 867: 866: 852: 838: 752: 749: 740: 737: 716: 713: 712: 711: 705: 703:qualified name 696: 687: 666: 663:Calendar dates 624: 621:floating-point 610: 600: 591: 569: 566: 502:Main article: 499: 496: 495: 494: 488: 471: 454: 419: 416: 414: 411: 334:Main article: 331: 328: 292:floating-point 284:Main article: 281: 278: 275: 274: 271: 268: 253: 250: 246: 245: 242: 239: 220: 217: 213: 212: 209: 206: 189: 186: 182: 181: 178: 175: 153: 150: 146: 145: 142: 132: 129: 122: 93:Main article: 90: 87: 74:floating-point 65: 62: 41:built-in types 15: 9: 6: 4: 3: 2: 2524: 2513: 2510: 2508: 2505: 2504: 2502: 2487: 2484: 2482: 2479: 2477: 2474: 2472: 2469: 2467: 2464: 2462: 2459: 2457: 2454: 2452: 2449: 2447: 2444: 2440: 2437: 2436: 2435: 2432: 2430: 2427: 2425: 2422: 2420: 2417: 2415: 2412: 2411: 2409: 2403: 2397: 2394: 2392: 2389: 2387: 2384: 2382: 2379: 2377: 2374: 2372: 2369: 2367: 2364: 2362: 2359: 2357: 2354: 2352: 2349: 2347: 2346:Function type 2344: 2342: 2339: 2337: 2334: 2332: 2329: 2327: 2324: 2322: 2319: 2318: 2316: 2312: 2304: 2301: 2300: 2299: 2296: 2294: 2291: 2289: 2286: 2284: 2281: 2279: 2276: 2274: 2271: 2267: 2264: 2263: 2262: 2259: 2257: 2254: 2252: 2249: 2247: 2244: 2242: 2239: 2237: 2234: 2232: 2229: 2227: 2224: 2222: 2219: 2215: 2212: 2211: 2210: 2207: 2206: 2204: 2202: 2198: 2190: 2187: 2186: 2185: 2182: 2180: 2177: 2176: 2174: 2172: 2168: 2162: 2159: 2155: 2152: 2150: 2147: 2146: 2145: 2142: 2141: 2139: 2137: 2133: 2127: 2124: 2122: 2119: 2115: 2112: 2111: 2110: 2107: 2101: 2098: 2097: 2096: 2093: 2091: 2088: 2086: 2083: 2081: 2078: 2076: 2073: 2069: 2066: 2064: 2061: 2059: 2056: 2055: 2053: 2052: 2051: 2048: 2046: 2043: 2041: 2038: 2036: 2033: 2031: 2028: 2027: 2025: 2021: 2015: 2012: 2010: 2007: 2005: 2002: 2000: 1997: 1995: 1992: 1990: 1987: 1986: 1984: 1982: 1981:Uninterpreted 1978: 1974: 1967: 1962: 1960: 1955: 1953: 1948: 1947: 1944: 1937: 1932: 1928: 1927: 1907: 1901: 1886: 1882: 1875: 1860: 1856: 1850: 1842: 1838: 1832: 1818: 1814: 1808: 1806: 1804: 1802: 1800: 1783: 1779: 1773: 1765: 1759: 1751: 1745: 1730: 1726: 1719: 1703: 1699: 1692: 1684: 1677: 1676: 1669: 1661: 1655: 1647: 1641: 1637: 1630: 1622: 1616: 1612: 1611: 1603: 1595: 1589: 1585: 1584: 1576: 1568: 1567: 1559: 1544:. 5 June 2017 1543: 1542:GeeksforGeeks 1539: 1533: 1518: 1514: 1508: 1500: 1498:0-13-110163-3 1494: 1490: 1486: 1485:Prentice Hall 1482: 1478: 1477: 1472: 1468: 1462: 1445: 1438: 1436: 1427: 1421: 1414: 1399: 1392: 1390: 1381: 1375: 1371: 1370: 1362: 1354: 1348: 1344: 1343: 1335: 1327: 1321: 1317: 1316: 1308: 1306: 1297: 1291: 1287: 1286: 1278: 1270: 1264: 1260: 1259: 1251: 1247: 1237: 1234: 1232: 1229: 1227: 1224: 1222: 1219: 1217: 1214: 1213: 1207: 1203: 1201: 1189: 1185: 1175: 1173: 1169: 1165: 1161: 1157: 1153: 1149: 1145: 1133: 1129: 1125: 1121: 1117: 1113: 1109: 1105: 1101: 1097: 1094: 1092: 1088: 1085: 1082: 1078: 1074: 1073: 1068: 1065: 1063: 1059: 1055: 1051: 1047: 1043: 1039: 1035: 1031: 1027: 1023: 1020: 1018: 1014: 1010: 1003: 1000: 998: 994: 991: 988: 984: 980: 976: 972: 968: 964: 961: 958: 954: 950: 947: 945: 941: 937: 933: 929: 926: 924: 920: 916: 912: 908: 904: 901: 898: 894: 892: 887: 882: 878: 877: 876: 860: 853: 850: 839: 836: 829: 828: 827: 824: 748: 746: 736: 734: 730: 726: 722: 706: 704: 697: 695: 688: 686: 682: 678: 667: 664: 625: 622: 611: 608: 601: 599: 592: 590: 586: 579: 578: 577: 575: 565: 562:long long int 547: 511: 505: 498:C basic types 491:returnAddress 489: 479: 472: 470: 466: 455: 452: 429: 428: 427: 425: 410: 404: 400: 380: 376: 371: 370:numeric types 367: 363: 359: 355: 350: 347: 343: 337: 327: 325: 321: 317: 313: 309: 305: 301: 297: 293: 287: 272: 269: 266: 254: 251: 248: 247: 243: 240: 237: 233: 221: 218: 215: 214: 210: 207: 196: 193: 190: 187: 184: 183: 179: 177:−128 to +127 176: 173: 169: 161: 157: 154: 151: 148: 147: 143: 140: 136: 133: 130: 127: 123: 120: 116: 115: 112: 110: 106: 102: 96: 86: 84: 79: 76:numbers, and 75: 71: 61: 59: 54: 52: 51: 46: 42: 38: 34: 30: 26: 22: 2450: 2251:Intersection 1909:. Retrieved 1900: 1888:. Retrieved 1884: 1874: 1862:. Retrieved 1858: 1849: 1840: 1831: 1820:. Retrieved 1816: 1786:. Retrieved 1781: 1772: 1758: 1744: 1732:. Retrieved 1728: 1718: 1706:. Retrieved 1701: 1691: 1682: 1674: 1668: 1635: 1629: 1609: 1602: 1582: 1575: 1565: 1558: 1546:. Retrieved 1541: 1532: 1520:. Retrieved 1516: 1507: 1474: 1461: 1450:. Retrieved 1420: 1412: 1405:. Retrieved 1403:. p. 29 1396:Fog, Agner. 1368: 1361: 1341: 1334: 1314: 1284: 1277: 1257: 1250: 1204: 1176: 1141: 1080: 1076: 1070: 873: 825: 754: 742: 718: 673:base64Binary 571: 510:C data types 507: 421: 369: 365: 351: 346:logical type 345: 342:Boolean type 339: 289: 211:0 to 65,535 98: 67: 55: 49: 44: 40: 24: 18: 2481:Type theory 2476:Type system 2326:Bottom type 2273:Option type 2214:generalized 2100:Long double 2045:Fixed point 1890:10 February 1548:October 15, 1522:October 15, 1226:Object type 1102:languages, 1009:Common Lisp 997:Common Lisp 975:Common Lisp 932:Common Lisp 907:Standard ML 889:in C++ and 681:hexadecimal 679:encoded as 677:binary data 58:value types 2507:Data types 2501:Categories 2386:Empty type 2381:Type class 2331:Collection 2288:Refinement 2266:metaobject 2114:signedness 1973:Data types 1911:29 January 1864:29 January 1822:2023-10-17 1734:29 January 1708:29 January 1702:www.w3.org 1645:0131103709 1517:devdocs.io 1487:. p.  1452:2010-08-30 1407:28 January 1242:References 1152:JavaScript 1104:JavaScript 1100:functional 1081:descriptor 1050:JavaScript 953:precisions 729:properties 715:JavaScript 643:gYearMonth 568:XML Schema 469:precisions 174:CHAR_BIT) 29:data types 2461:Subtyping 2456:Interface 2439:metaclass 2391:Unit type 2361:Semaphore 2341:Exception 2246:Inductive 2236:Dependent 2201:Composite 2179:Character 2161:Reference 2058:Minifloat 2014:Bit array 1654:cite book 1144:character 1098:, in all 1067:Reference 1028:, and/or 886:nullptr_t 881:void type 721:immutable 669:hexBinary 665:and times 651:gMonthDay 405:supports 399:stdbool.h 257:long long 180:0 to 255 50:composite 33:processor 2486:Variable 2376:Top type 2241:Equality 2149:physical 2126:Rational 2121:Interval 2068:bfloat16 1885:CodeAhoy 1473:(1978). 1210:See also 1007:type in 833:for the 708:NOTATION 631:dateTime 627:duration 609:notation 542:unsigned 330:Booleans 316:rational 252:64 bits 249:8 bytes 219:32 bits 216:4 bytes 188:16 bits 185:2 bytes 172:limits.h 70:integers 2429:Generic 2405:Related 2321:Boolean 2278:Product 2154:virtual 2144:Address 2136:Pointer 2109:Integer 2040:Decimal 2035:Complex 2023:Numeric 1168:strings 1087:Symbols 1072:pointer 1026:records 1017:Haskell 1005:Integer 971:Fortran 944:Haskell 835:Boolean 725:methods 623:numbers 607:decimal 603:decimal 598:Boolean 594:boolean 478:Boolean 474:boolean 451:integer 401:), and 366:boolean 308:decimal 232:pointer 152:8 bits 149:1 byte 137:range ( 101:integer 78:Boolean 45:derived 2419:Boxing 2407:topics 2366:Stream 2303:tagged 2261:Object 2184:String 1788:18 May 1642:  1617:  1590:  1495:  1376:  1349:  1322:  1292:  1265:  1156:Python 1077:handle 1042:Python 1013:Erlang 979:Python 940:Scheme 936:Python 923:Elixir 911:Python 857:for a 690:anyURI 685:Base64 659:gMonth 657:, and 617:double 585:string 581:string 560:(e.g. 540:, and 538:signed 526:double 524:, and 461:double 375:ANSI C 358:Pascal 304:binary 265:x86-64 170:( see 135:Signed 131:Names 124:Size ( 117:Size ( 2314:Other 2298:Union 2231:Class 2221:Array 2004:Tryte 1683:Types 1679:(PDF) 1447:(PDF) 1401:(PDF) 1184:POSIX 1172:UTF-8 1164:BASIC 1089:, in 957:scale 919:Swift 915:Scala 903:Tuple 897:below 837:type. 821:usize 817:isize 813:usize 699:QName 647:gYear 613:float 550:_Bool 530:short 522:float 486:false 457:float 435:short 395:false 383:_Bool 236:IA-32 205:in C 199:short 160:octet 119:bytes 105:range 2434:Kind 2396:Void 2256:List 2171:Text 2009:Word 1999:Trit 1994:Byte 1913:2022 1892:2020 1866:2022 1790:2022 1736:2022 1710:2022 1660:link 1640:ISBN 1615:ISBN 1588:ISBN 1550:2020 1524:2020 1493:ISBN 1409:2022 1374:ISBN 1347:ISBN 1320:ISBN 1290:ISBN 1263:ISBN 1200:Java 1196:char 1192:char 1188:bits 1180:char 1160:Ruby 1132:Perl 1124:Java 1091:Lisp 1046:Ruby 1034:Perl 1030:sets 928:List 879:The 863:char 855:char 843:and 831:bool 815:and 809:i128 807:and 789:u128 767:and 751:Rust 701:: a 692:: a 671:and 655:gDay 639:date 635:time 615:and 596:: a 583:: a 572:The 554:long 534:long 514:char 484:and 482:true 476:, a 459:and 447:char 443:long 431:byte 424:Java 422:The 418:Java 407:bool 393:and 391:true 387:bool 360:and 354:Java 312:real 261:long 234:for 224:long 201:and 195:word 164:char 156:Byte 126:bits 83:SIMD 2293:Set 1989:Bit 1120:C++ 1108:Lua 1079:or 1075:or 1054:Lua 1038:PHP 1032:in 995:in 967:C99 965:in 930:in 905:in 891:C23 845:f64 841:f32 805:i64 801:i32 797:i16 785:u64 781:u32 777:u16 769:128 759:or 743:In 727:or 694:URI 683:or 564:). 558:int 546:C99 518:int 439:int 403:C++ 379:C99 362:Ada 314:or 228:int 203:int 192:x86 168:C99 166:in 99:An 47:or 19:In 2503:: 1883:. 1857:. 1839:. 1815:. 1798:^ 1780:. 1727:. 1700:. 1656:}} 1652:{{ 1540:. 1515:. 1491:. 1489:41 1483:: 1469:; 1434:^ 1411:. 1388:^ 1304:^ 1158:, 1154:, 1142:A 1130:, 1128:C# 1126:, 1122:, 1116:Go 1114:, 1110:, 1106:, 1083:), 1062:Go 1060:, 1056:, 1052:, 1048:, 1044:, 1040:, 1036:, 1024:, 1015:, 1011:, 987:Go 985:, 981:, 977:, 973:, 969:, 942:, 938:, 934:, 921:, 917:, 913:, 909:, 803:, 799:, 795:, 793:i8 791:, 787:, 783:, 779:, 775:, 773:u8 735:. 675:: 661:: 653:, 649:, 645:, 641:, 637:, 633:, 629:, 619:: 536:, 532:, 520:, 516:, 463:, 445:, 441:, 437:, 433:, 356:, 340:A 290:A 158:, 128:) 121:) 53:. 23:, 1965:e 1958:t 1951:v 1915:. 1894:. 1868:. 1825:. 1792:. 1738:. 1712:. 1685:. 1662:) 1648:. 1623:. 1596:. 1569:. 1552:. 1526:. 1501:. 1455:. 1428:. 1382:. 1355:. 1328:. 1298:. 1271:. 1112:D 1058:D 983:D 959:. 899:) 851:. 765:8 761:i 757:u 449:( 39:(

Index

computer science
data types
processor
programming language
composite
value types
integers
floating-point
Boolean
SIMD
Integer (computer science)
integer
range
non-negative integers
bytes
bits
Signed
two's complement
Byte
octet
C99
limits.h
x86
word
pointer
IA-32
x86-64
Floating-point arithmetic
floating-point
rational number

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.