I have a QT C++ application that computes sunrise and sunset times using functions from math.h and double datatypes. When I build the project for my Linux desktop the results are spot-on (compared against online resources). I have just cross compiled the same project to run on my Raspberry Pi 3B, but the results are all slightly wrong, even though the system clock times are identical on both machines.
One other oddity is that QT Creator's code editor complains about not being able to find math.h when I select my Raspberry Pi Kit, but the project builds and links without issue.
My gut feeling is that floats are being used instead of doubles, but work gets in the way of debugging I am new to QT and cross compiling for the Pi, so I would appreciate any suggestions to help me locate the cause, or understand any restrictions.