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

32 bit calculation

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



Joined: 22 Mar 2005
Posts: 1

View user's profile Send private message

32 bit calculation
PostPosted: Tue Mar 22, 2005 6:38 am     Reply with quote

In a project [sort of calculator], I need 9 digits and floating point calculation; I know that ccs c supports 32 bit floating points (IEEE) which provides 24 bits for mantissa. that makes a 8-digits number. but I need at least 30-bit mantissa for 9 digits.

Is there a way for me to calculate both 32 bit floating point and store 9 digit numbers as a whole? can anybody help?
Ttelmah
Guest







PostPosted: Tue Mar 22, 2005 6:41 am     Reply with quote

Not without writing your own maths library.
However remember that you could (for instance), use a 32bit integer, and another int8, as a scale factor. Depending what arithmetic you want, this could be relatively easy to code.

Best Wishes
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