Data type

The standard type hierarchy of Python 3

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]

  1. ^ Parnas, Shore & Weiss 1976.
  2. ^ type at the Free On-line Dictionary of Computing
  3. ^ Shaffer, C. A. (2011). Data Structures & Algorithm Analysis in C++ (3rd ed.). Mineola, NY: Dover. 1.2. ISBN 978-0-486-48582-9.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search