[Gridflow-cvs] [svn] commit: r6395 - /trunk/src/classes1.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Oct 5 08:51:30 EDT 2010


Author: claude
Date: Tue Oct  5 08:51:26 2010
New Revision: 6395

Log:
change number format from %#f to %.#g for more human readable display of all sizes of numbers

Modified:
    trunk/src/classes1.cxx

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Tue Oct  5 08:51:26 2010
@@ -232,8 +232,8 @@
 		columns = max(maxd,mind);
 	}
 	string format (NumberTypeE nt) {
-		if (nt==float32_e) return "%6f";
-		if (nt==float64_e) return "%14f";
+		if (nt==float32_e) return "%.6g";
+		if (nt==float64_e) return "%.14g";
 		ostringstream r;
 		r << "%";
 		r << columns;



More information about the Gridflow-cvs mailing list