Knowledge (XXG)

Primitive data type

Source 📝

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

Index

Primitive types
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

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