Float: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (typo)
No edit summary
Line 1: Line 1:
{{stub}}
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.
[[category:variables]][[category:Glossary]]
A 32-bit floating point number. Usually stored according to IEEE754. They are used to store decimal numbers. Floating points are greatly used in graphics programs and games, but not so much in general applications.


A float requires significantly more memory to store but offers a far higher degree of precision.


==See also==


==Wikipedia Links==
*[[Integer]]
* [[Wikipedia:Floating point|Floating-point numbers]]
 
* [[Wikipedia:IEEE floating-point standard|IEEE754 Standard]]
[[Category:Glossary]]

Revision as of 08:08, 28 April 2008

A float (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 float requires significantly more memory to store but offers a far higher degree of precision.

See also