True 64 bit double?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
RyanPierce
 
Posts: 11
Joined: Thu Aug 23, 2012 7:12 pm

True 64 bit double?

Post by RyanPierce »

On Arduino, double = float = 32 bits.

This is particularly annoying. I'd like to hack an Arduino based clock to display various Mars times, e.g. MTC and mission clocks for the rovers. The math I've found for this is straightforward, but it does operations involving small and large numbers. The tests I've done have made it clear that 32 bit float won't cut it, at least not unless I come up with a nifty way of rewriting all the equations.

Does anyone know of a library that can do basic arithmetic on 64 bit doubles? I don't even need trig. Add, subtract, multiply, divide, the ability to specify constants as 64 bit doubles, and the ability to convert between 32 bit floats and 64 bit doubles.

Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”