Jump to content

Scalar (computing)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Techi2ee (talk | contribs) at 14:34, 9 August 2007 (Added ca:Escalar (informàtica)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computing, a scalar is a variable or field that can hold only one value at a time; as opposed to composite variables like array, list, record, etc. In some contexts, a scalar value may be understood to be numeric. A scalar data type is the type of a scalar variable. For example, char, int, float, and double are the most common scalar data types in the C programming language.

The origin of the term "scalar" in computing dates back to the 1970's, where the intended meaning was "opposite of vector", so as to distinguish from the idea of vector processing in computer processor design.

See also