Difference between revisions of "Data type"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(etc)
Line 1: Line 1:
In [[computer science]] and [[computer programming]], a '''data type''' (or simply '''type''') is a classification identifying one of various types of data.
+
In [[computer science]] and [[computer programming]], a '''data type''' (or simply '''type''') is a classification identifying one of various types of [[Data (computing)|data]].
  
 
== Description ==
 
== Description ==
Line 5: Line 5:
 
Data type determines:
 
Data type determines:
  
* The possible values for that type
+
* The possible [[Value (computing)|values]] for that type
* The operations that can be done on values of that type
+
* The [[Operation (computing)|operations]] that can be done on values of that type
* The meaning of the data
+
* The [[Semantics (computing)|meaning]] of the data
* The way values of that type can be stored
+
* The way values of that type can be [[Data storage|stored]]
  
 
== Type systems ==
 
== Type systems ==

Revision as of 16:50, 31 August 2015

In computer science and computer programming, a data type (or simply type) is a classification identifying one of various types of data.

Description

Data type determines:

  • The possible values for that type
  • The operations that can be done on values of that type
  • The meaning of the data
  • The way values of that type can be stored

Type systems

Data types are used within type systems, which offer various ways of defining, implementing and using data types.

Type safety

Different type systems ensure varying degrees of type safety.

Programming language support

Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology.

Common data types

Common data types include:

  • Integers
  • Floating-point numbers
  • Booleans
  • Characters
  • Alphanumeric strings
  • Arrays

See also

External links