[GRASS-SVN] r31236 - grass/branches/develbranch_6/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 3 16:16:36 EDT 2008
Author: neteler
Date: 2008-05-03 16:16:35 -0400 (Sat, 03 May 2008)
New Revision: 31236
Modified:
grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c
Log:
keep precision
Modified: grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c 2008-05-03 15:17:54 UTC (rev 31235)
+++ grass/branches/develbranch_6/lib/db/dbmi_base/valuefmt.c 2008-05-03 20:16:35 UTC (rev 31236)
@@ -65,7 +65,7 @@
sprintf (buf, "%d",db_get_value_int(value));
break;
case DB_C_TYPE_DOUBLE:
- sprintf (buf, "%lf",db_get_value_double(value));
+ sprintf (buf, "%.14f",db_get_value_double(value));
G_trim_decimal(buf);
break;
case DB_C_TYPE_STRING:
More information about the grass-commit
mailing list