Data type
noun · Computer science
Definition
The kind of value a variable holds, such as integer, string or Boolean.
Explanation
The data type determines which operations are allowed.
Example
Integer, float, string and Boolean are common data types.
Common confusion
Converting types is sometimes required.
Related terms
- IntegerA whole number, positive, negative or zero.
- StringA sequence of characters, such as text.
- BooleanA data type with two possible values, true or false.
Study guides that use this term
Entry status: written by the editorial team and awaiting independent review. Spot an error? Use our corrections page.
← All vocabulary