[GRASS-SVN] r52905 - grass/branches/releasebranch_6_4/raster/r.what.color
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 25 06:55:39 PDT 2012
Author: mmetz
Date: 2012-08-25 06:55:39 -0700 (Sat, 25 Aug 2012)
New Revision: 52905
Modified:
grass/branches/releasebranch_6_4/raster/r.what.color/main.c
Log:
hamish: show input value to full precision (or near enough)
Modified: grass/branches/releasebranch_6_4/raster/r.what.color/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.what.color/main.c 2012-08-25 13:50:46 UTC (rev 52904)
+++ grass/branches/releasebranch_6_4/raster/r.what.color/main.c 2012-08-25 13:55:39 UTC (rev 52905)
@@ -53,10 +53,10 @@
return 0;
}
if (!G_get_d_raster_color(&fval, &red, &grn, &blu, colors)) {
- fprintf(stdout, "%f: *\n", fval);
+ fprintf(stdout, "%.15g: *\n", fval);
return 0;
}
- fprintf(stdout, "%f: ", fval);
+ fprintf(stdout, "%.15g: ", fval);
fprintf(stdout, fmt, red, grn, blu);
fprintf(stdout, "\n");
return 1;
More information about the grass-commit
mailing list