Import 2017-06-07 23:51:09: master d9f522cc
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
jcfr | jcfr | master | 2015-09-14 18:16:13 | master f1201a58 |
Affected Issues | 0004044: Value to string conversion should account for precision | |||
Changeset | BUG: MRMLUnitNode: Ensure value to string conversion account for precision Fixes 0004044 By calling "strstream.setf(ios::fixed,ios::floatfield)", it guarantees This prevents the cut of decimals when we have big numbers. Running the following python snippet in the python interactor 8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--- Before the change: 10^-5 -> 1e-05 m/s After the change: 10^-5 -> 0.000 m/s Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> From: Davide Punzo <punzodavide@hotmail.it> git-svn-id: http://svn.slicer.org/Slicer4/trunk@24541 3bd1e089-480b-0410-8dfb-8563597acbee |
|||
mod - Libs/MRML/Core/vtkMRMLUnitNode.cxx | Diff File |