summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc
index 7744a18..98a7eca 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -25,6 +25,7 @@
*/
#include "value.h"
+#include "printutils.h"
#include <stdio.h>
#include <math.h>
#include <assert.h>
@@ -197,6 +198,7 @@ public:
if (dotpos != std::string::npos) {
if (tmpstr.size() - dotpos > 12) tmpstr.erase(dotpos + 12);
}
+ tmpstr = two_digit_exp_format( tmpstr );
return tmpstr;
#else
// attempt to emulate Qt's QString.sprintf("%g"); from old OpenSCAD.
contact: Jan Huwald // Impressum