[GRASS-SVN] r33773 - grass/branches/develbranch_6/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 9 00:21:41 EDT 2008
Author: hamish
Date: 2008-10-09 00:21:41 -0400 (Thu, 09 Oct 2008)
New Revision: 33773
Modified:
grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c
Log:
nicer double formatting
Modified: grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c 2008-10-09 03:58:21 UTC (rev 33772)
+++ grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c 2008-10-09 04:21:41 UTC (rev 33773)
@@ -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