open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

file_observer prints real numbers with low precision #618

Open kyllingstad opened 4 years ago

kyllingstad commented 4 years ago

It looks like file_observer simply uses the default precision for real numbers, which is only 6 digits. This is vastly insufficient for many purposes. (The case that prompted me to write this report is latitude and longitude, quite common in the maritime domain.)

Either, real numbers should be printed with maximum precision, or it should be configurable in LogConfig.xml.