double
on the Arduino Uno is not what you think, double
on the Arduino Uno is the same as float
, giving you only 6-7 digits of precision! fp64lib was created to implement full 64-bit floating point arithmetic on the AVR MegaAVR architecure microprocessors. Data format is fully compatible with IEEE 754 binary64 standard, providing you 15-17 digits of accuracy.
The library also comes with a math.h compatible header file named “fp64-math.h”. All fp64lib routines start with “fp64_”, e.g. fp64_sin or fp64_add. Library is fully compatible to usual “math.h” routines and includes functions for basic arithmetic, checking and comparing, trigonometry, conversion, logarithms and hyperbelic math. Read more…