Float: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
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.
{{LanguageBar|Float}}
 
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==
*[[Integer]]
*[[Integer]]
*[[Real]]


[[Category:variables]]
[[Category:variables]]
[[Category:Glossary]]
 
 
{{stub}}

Latest revision as of 17:52, 18 July 2025

English (en)Deutsch (de)Español (es)Hrvatski (hr)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)

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


Stub

This article or section is a stub. You can help by expanding it.