Archived

This topic is now archived and is closed to further replies.

Floats

This topic is 6366 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I''m an assembler programmer and I''m just getting into floating point math and it seems there''s a whole bunch of floating point data types. I''m just wondering when you see (float) in C what kind of float is that? It appears that there is (In asm): S_floating (IEEE single precision) T_floating (IEEE double precision) Longword integer and quadword integer F_floating (VAX single precision) D_floating (VAX double precision, limited support) G_floating (VAX double precision) What do you guys use for most game math? And is there an advantage to any one of the data types? Thanks, Ben

Share this post


Link to post
Share on other sites
float = S_floating (IEEE single precision)
double = T_floating (IEEE double precision)

most of the time a float is used since it''s well aligned with the CPU''s pipeline... (32-bits)... where''s the double float (or double) is 64-bit, and is slower.... for smaller games, a float is used, and for bigger ones, a fixed point math is used (usually) to conpencate for all the calculations involved...

..-=ViKtOr=-..

Share this post


Link to post
Share on other sites