Float-point operations are performed on double values for better accuracy.