Data type

Applies to: general

A data type classifies a value and what you can do with it: integers (int), real numbers (float/double), text (string), booleans, and so on. Statically-typed languages (C++, Fortran) check types at compile time; dynamically-typed ones (Python) check at run time.

int    count = 3;       // whole number
double speed = 12.5;    // real number
bool   ok    = true;    // boolean

See also: variable, floating-point