Accelerometer must be represented in double to get the best precision