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

Controlling fixed precision for logging float point values #775

Closed davidhjp01 closed 1 month ago

davidhjp01 commented 1 month ago

CSV files printed from file_observer does not include enough decimal places in case for logging latitude and longitude values for a ship vessel. Added a method cosim::file_observer::file_observer_config::fixed_precision(const int) to specify fixed precision value for file_observer.