Real: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(43 intermediate revisions by 24 users not shown)
Line 1: Line 1:
[[category:variables]]
{{lang|Real}}
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, Distance, and other such values that must be measured in precision.
A '''real''' is a number {{wiki|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.
 
[[Category:Variables]]

Latest revision as of 20:18, 13 April 2023

English (en)Deutsch (de)Русский (ru)中文 (zh)Translate (Translate)

A real is a number Wikipedia icon 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.