String::String(const T& t, int precision)
Xml::Element(const String& tagWord, const T& value, int precision)
Xml::setValueAs(const T& value, int precision)
It also restores the default precision to what it was prior to https://github.com/simbody/simbody/pull/762 (i.e., to 6 sig figs, which has been the standard in .osim files for some time.)
opensim-core unit tests pass (i.e., the update doesn't appear to break anything).
CHANGELOG.md
No need to update the change log because, at present, no code in OpenSim main use the above methods. There are, however, classes in development that do take advantage of the variable output precision (e.g., OpenSim::StatesDocument).
Brief summary of changes
This commit updates the dependency GIT_TAG for Simbody (see https://github.com/opensim-org/opensim-core/blob/main/dependencies/CMakeLists.txt#L183) to use https://github.com/simbody/simbody/commit/2b4aefbb43d8b55f3edc3bdfafa9636fb988ed3c.
https://github.com/simbody/simbody/commit/2b4aefbb43d8b55f3edc3bdfafa9636fb988ed3c adds three templatized methods (see below) that allow numerical types to be written to XML documents with a specified number of significant figures (i.e., precision):
It also restores the default precision to what it was prior to https://github.com/simbody/simbody/pull/762 (i.e., to 6 sig figs, which has been the standard in .osim files for some time.)
https://github.com/simbody/simbody/pull/779 implements a bug fix to https://github.com/simbody/simbody/pull/776, which was the first PR to introduce variable output precision to the above templatized methods.
This update requires no changes to existing OpenSim code.
Testing I've completed
CHANGELOG.md
This change is