Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

True 64 bit double?
Moderators: adafruit_support_bill, adafruit

True 64 bit double?

by RyanPierce on Sun Nov 11, 2012 2:56 am

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.

Posts: 11
Joined: Thu Aug 23, 2012 7:12 pm