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 CCS Technical Support

How to declare 64 bit float in PIC16F877A?!?!?!?!?

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



Joined: 12 Jun 2006
Posts: 9

View user's profile Send private message

How to declare 64 bit float in PIC16F877A?!?!?!?!?
PostPosted: Wed Mar 14, 2007 8:17 am     Reply with quote

hello everybody!!!

Is there anyway that i could declare a 64 bit floating point number in a PIC 16F877A ?!?!?!?!?!?!?!?
32 bit float is not enough to store the decimal places of 7 and above which i actually need....is there any library i could use or sumthing..???

need help urgently...
Mughees
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Mar 14, 2007 9:09 am     Reply with quote

Quote:

Is there anyway that i could declare a 64 bit floating point number in a PIC 16F877A

Double precision is not allowed in CCS.

Quote:

32 bit float is not enough to store the decimal places of 7 and above which i actually need....

Are you going to store such a big values in floats ?

Humberto
Guest








PostPosted: Wed Mar 14, 2007 9:49 am     Reply with quote

Quote:

32 bit float is not enough to store the decimal places of 7 and above which i actually need....


actually it is not a big value...
its something like this

'0.00000021341'

i need the digits after the sixth zero after the decimal...these digits are not stored in a 32 bit floating point number...so actually i needed more precision...
is there a way to solve this directly or indirectly???

Quote:

Are you going to store such a big values in floats ?

where else can i store it then?? :/
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Mar 14, 2007 10:32 am     Reply with quote

Quote:

i need the digits after the sixth zero after the decimal...these digits are not stored in a 32 bit floating point number...so actually i needed more precision...

They should.
0.00000021341 = 0x686525B2

Could you point us the range of the values that you need to handle and store ?
Could you pls be more explicit about your procedure to store these values ?


Humberto
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