Float: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(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==

Revision as of 00:18, 20 February 2018

Template:Otherlang2 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