Real: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
A '''real''' is a number [[variable]] that can store whole and decimal numbers.
A '''real''' is a number [[variable]] that can store whole and decimal numbers.


The downside to using '''reals''' is that '''real''' [[variables]] use more space than [[integer]] [[variables]] do. '''Real'' [[variable]]s should be used for values that need to be as precise as possible. Examples include Health, Points (on a graph or map), Distance, and other such values that must be measured in precision.
The downside to using '''reals''' is that '''real''' [[variables]] use more space than [[integer]] [[variable]]s do. '''Real'' [[variable]]s should be used for values that need to be as precise as possible.
 
Examples include Health, Points (on a graph or map), Distance, and other such values that must be measured in precision.

Revision as of 16:16, 14 July 2005

A real is a number variable that can store whole and decimal numbers.

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 Health, Points (on a graph or map), Distance, and other such values that must be measured in precision.