A scalar object is a data type that represents a single value, rather than a collection of values. In programming, the term scalar typically refers to numerical values (i.e. integers and floating-point numbers), and also includes boolean values (true/false). Scalars are used in a variety of applications, including mathematics, physics, and computer science.