Jump to content
  • Advertisement
Sign in to follow this  
dragon9

No-Float Math Library

This topic is 4887 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

I need some functions to do double precision math on a computer with no floating point support. I just need functions for +, -, * Thanks...

Share this post


Link to post
Share on other sites
Advertisement
Which CPU is this? Most without FPUs do emulation on the CPU.

Found this on google: http://crd.lbl.gov/~dhbailey/mpdist/

Share this post


Link to post
Share on other sites
Well, its actually on a Pentium 4 but I'm trying to do large double precision operations and the program is doing some strange background trucation on the doubles and giving me wrong answers. Here is an example...

double val1 = 12345.12345;
double val2 = 12345.12345;

result = val1 * val2;

My development computer produces the
correct answer, 152402072.9957 but...

My testing computer program produces the
wrong answer, 152402080.0000

I remember from my Playstation 1 programming days that there were functions that would split the integer and decimal compenents into separate componenets because the PS1 float emulation was so slow. I wanted to try this as a workaround.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!