Real: Difference between revisions
Jump to navigation
Jump to search
m (spam cleanup) |
m (despam and remove redundant links) |
||
Line 1: | Line 1: | ||
A '''real''' is a number [[variable]] that can store whole and decimal numbers (examples are the ''[[float]]'' and ''double'' types). | |||
A | |||
The downside to using | 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. | Examples include points (on a graph or map), distance, and other such values that must be measured in precision. | ||
[[Category:Variables]] | |||
[[Category:Glossary]] | |||
[ | |||
[ | |||
[ | |||
[ | |||
Revision as of 04:31, 8 March 2006
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.