In computer science and computer programming, a data type (or simply type) is a collection or grouping of data values, usually specified by a set of possible values, a set of allowed operations on these values, and/or a representation of these values as machine types.[1] A data type specification in a program constrains the possible values that an expression, such as a variable or a function call, might take. On literal data, it tells the compiler or interpreter how the programmer intends to use the data. Most programming languages support basic data types of integer numbers (of varying sizes), floating-point numbers (which approximate real numbers), characters and Booleans.[2][3]
^Parnas, Shore & Weiss 1976.
^ type at the Free On-line Dictionary of Computing
^Shaffer, C. A. (2011). Data Structures & Algorithm Analysis in C++ (3rd ed.). Mineola, NY: Dover. 1.2. ISBN 978-0-486-48582-9.
computer science and computer programming, a datatype (or simply type) is a collection or grouping of data values, usually specified by a set of possible...
In the C programming language, datatypes constitute the semantics and characteristics of storage of data elements. They are expressed in the language...
In computer science, the Boolean (sometimes shortened to Bool) is a datatype that has one of two possible values (usually denoted true and false) which...
abstract datatype (ADT) is a mathematical model for datatypes, defined by its behavior (semantics) from the point of view of a user of the data, specifically...
primitive datatypes are a set of basic datatypes from which all other datatypes are constructed. Specifically it often refers to the limited set of data representations...
programming and type theory, an algebraic datatype (ADT) is a kind of composite type, i.e., a type formed by combining other types. Two common classes...
many types of statements, which may be informally classed as sublanguages, commonly: Data query Language (DQL), Data Definition Language (DDL), Data Control...
In computer science, an opaque datatype is a datatype whose concrete data structure is not defined in an interface. This enforces information hiding...
A real datatype is a datatype used in a computer program to represent an approximation of a real number. Because the real numbers are not countable,...
statistics, groups of individual data points may be classified as belonging to any of various statistical datatypes, e.g. categorical ("red", "blue"...
composite datatype or compound datatype is any datatype which can be constructed in a program using the programming language's primitive datatypes and other...
compilers for them) provide a built-in (primitive) or library decimal datatype to represent non-repeating decimal fractions like 0.3 and -1.17 without...
programming languages provide a complex datatype for complex number storage and arithmetic as a built-in (primitive) datatype. A complex variable or value is...
languages, a recursive datatype (also known as a recursively-defined, inductively-defined or inductive datatype) is a datatype for values that may contain...
a generalized algebraic datatype (GADT, also first-class phantom type, guarded recursive datatype, or equality-qualified type) is a generalization of...
structure about data. Data structures serve as the basis for abstract datatypes (ADT). The ADT defines the logical form of the datatype. The data structure...
uses for algebraic datatypes, data structures, or other components (e.g. "string", "array of float", "function returning boolean"). Type systems are often...
rational datatype to represent rational numbers like 1/3 and -11/17 without rounding, and to do arithmetic on them. Examples are the ratio type of Common...
Look up type in Wiktionary, the free dictionary. Type may refer to: Typing, producing text via a keyboard, typewriter, etc. Datatype, collection of values...