In reply to hisingh:
The f in
%f stands for fixed-point decimal. The C/C++ convention prints 6 decimal places. You need 7. You would need the format “%9.7f”
In reply to hisingh:
The f in
%f stands for fixed-point decimal. The C/C++ convention prints 6 decimal places. You need 7. You would need the format “%9.7f”