How to declare 64 bit float in PIC16F877A?!?!?!?!?
Posted: Wed Mar 14, 2007 8:17 am
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
Posted: Wed Mar 14, 2007 9:09 am
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
Posted: Wed Mar 14, 2007 9:49 am
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
Posted: Wed Mar 14, 2007 10:32 am
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 ?
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