[GRASS-SVN] r33774 - grass/trunk/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 9 00:23:34 EDT 2008
Author: hamish
Date: 2008-10-09 00:23:34 -0400 (Thu, 09 Oct 2008)
New Revision: 33774
Modified:
grass/trunk/lib/db/dbmi_base/valuefmt.c
Log:
nicer double formatting (merge from devbr6)
Modified: grass/trunk/lib/db/dbmi_base/valuefmt.c
===================================================================
--- grass/trunk/lib/db/dbmi_base/valuefmt.c 2008-10-09 04:21:41 UTC (rev 33773)
+++ grass/trunk/lib/db/dbmi_base/valuefmt.c 2008-10-09 04:23:34 UTC (rev 33774)
@@ -58,7 +58,7 @@
sprintf(buf, "%d", db_get_value_int(value));
break;
case DB_C_TYPE_DOUBLE:
- sprintf(buf, "%.14f", db_get_value_double(value));
+ sprintf(buf, "%.15g", db_get_value_double(value));
G_trim_decimal(buf);
break;
case DB_C_TYPE_STRING:
More information about the grass-commit
mailing list