Difference between revisions of "Float"

From Valve Developer Community
Jump to: navigation, search
(Removed misleading/false claim that integers are only whole numbers ( >= 0 ). Removed claim that float's use much more memory as this is completely implementation dependent and often untrue.)
 
Line 2: Line 2:
 
|de=Float:de
 
|de=Float:de
 
}}
 
}}
A <code>float</code> (in full, "floating point value") is a number that contains a decimal place. This is as opposed to an [[integer]], which stores only whole numbers.
+
A <code>float</code> (in full, "floating point value") is a number that contains a non-zero decimal expansion (i.e. 3.5123). This is as opposed to an [[integer]], which stores numbers with a zero decimal expansion (i.e. 3).
 
 
A float requires significantly more memory to store but offers a far higher degree of precision.
 
  
 
==See also==
 
==See also==

Latest revision as of 07:18, 20 February 2018

Deutsch

A float (in full, "floating point value") is a number that contains a non-zero decimal expansion (i.e. 3.5123). This is as opposed to an integer, which stores numbers with a zero decimal expansion (i.e. 3).

See also