data type

The kind of a value, such as a whole number, text or a date, which decides what you can do with it and how it compares and sorts.

In more detail

Operations depend on types: in many languages + adds two numbers but joins two strings. In a database, each column has a type that limits which values it may hold. Choosing the right type catches mistakes early and makes values compare and sort correctly.

Example

type(3.0)

Related terms

Taught in

References