CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Floating point precision

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tedlarson



Joined: 03 Oct 2003
Posts: 13

View user's profile Send private message

Floating point precision
PostPosted: Fri Mar 25, 2005 11:35 pm     Reply with quote

I have an application that needs to do alot of floating point calculations, and the round-off and truncation error is killing it. By the time the calcs are done I get the wrong answer completely.

Everyone on this forum suggests using fixed point arithmetic. Does anyone know where I can get a fixed point library that is CCS compatible, that will give me 3.8 capable math, with sin, cos, tan, asin, atan, and sqrt capability?

Seems like it would be a huge undertaking to write such a library from scratch.

Thanks,

-Ted
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Mar 28, 2005 11:10 am     Reply with quote

Maybe you could change the order of operations to reduce the errors.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group