# Difference between revisions of "Real"

From Valve Developer Community

m (Linked variable to Wikipedia page) |
m (linked the german translation) |
||

Line 1: | Line 1: | ||

+ | {{otherlang2 | ||

+ | |de=Real:de | ||

+ | }} | ||

A '''real''' is a number {{wiki|variable}} that can store whole and decimal numbers (examples are the ''[[float]]'' and ''double'' types). | A '''real''' is a number {{wiki|variable}} that can store whole and decimal numbers (examples are the ''[[float]]'' and ''double'' types). | ||

## Latest revision as of 11:37, 26 April 2013

A **real** is a number variable that can store whole and decimal numbers (examples are the *float* and *double* types).

The downside to using reals is that real variables use more space than integer variables do. Real variables should be used for values that need to be as precise as possible.

Examples include points (on a graph or map), distance, and other such values that must be measured in precision.