Talk:Float: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 2: Line 2:


Compared to 32 bit integers there is no difference in memory usage. A float usually consists of a mantissa (23 bits), an exponent (8 bits) and a sign bit, which results in 32 bits--just like the integer. Is there something I didn't consider or is this a mistake on the page? --[[User:AVoX|aVoX]] ([[User talk:AVoX|talk]]) 17:23, 12 May 2015 (UTC)
Compared to 32 bit integers there is no difference in memory usage. A float usually consists of a mantissa (23 bits), an exponent (8 bits) and a sign bit, which results in 32 bits--just like the integer. Is there something I didn't consider or is this a mistake on the page? --[[User:AVoX|aVoX]] ([[User talk:AVoX|talk]]) 17:23, 12 May 2015 (UTC)
:The page may be referring to doubles, rather than floats. [[User:Solokiller|Solokiller]] ([[User talk:Solokiller|talk]]) 07:25, 13 May 2015 (UTC)

Latest revision as of 00:25, 13 May 2015

Quote: A float requires significantly more memory to store

Compared to 32 bit integers there is no difference in memory usage. A float usually consists of a mantissa (23 bits), an exponent (8 bits) and a sign bit, which results in 32 bits--just like the integer. Is there something I didn't consider or is this a mistake on the page? --aVoX (talk) 17:23, 12 May 2015 (UTC)

The page may be referring to doubles, rather than floats. Solokiller (talk) 07:25, 13 May 2015 (UTC)