Jump to content
  • Advertisement

Archived

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

cyberben

Floats

This topic is 6673 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
Advertisement
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
Oops... I just realized I accedentally posted in the wrong forum! Sorry.

Well thanks for your help anyhow!
Bye,
Ben

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!