Difference between revisions of "Real"

From Valve Developer Community
Jump to: navigation, search
m (Redirected link)
m (Stubbed the article)
Line 5: Line 5:
  
 
Examples include Health, Points (on a graph or map), Distance, and other such values that must be measured in precision.
 
Examples include Health, Points (on a graph or map), Distance, and other such values that must be measured in precision.
 +
 +
{{stub}}

Revision as of 13:26, 15 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.