# Difference between revisions of "Float"

From Valve Developer Community

(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 | + | 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). |

− | |||

− | |||

==See also== | ==See also== |

## Latest revision as of 07:18, 20 February 2018

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).