瀏覽代碼

rasterlib: rephrase comment

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52909 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 年之前
父節點
當前提交
51ea61520e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/raster/color_write.c

+ 2 - 2
lib/raster/color_write.c

@@ -250,7 +250,7 @@ static void format_min(char *str, double dval)
     G_trim_decimal(str);
     G_trim_decimal(str);
     sscanf(str, "%lf", &dtmp);
     sscanf(str, "%lf", &dtmp);
     if (dtmp != dval) {  /* if no zeros after decimal point were trimmed */
     if (dtmp != dval) {  /* if no zeros after decimal point were trimmed */
-	/* lower dval by fraction of GRASS_EPSILON */
+	/* lower dval by GRASS_EPSILON fraction */
 	if (dval > 0)
 	if (dval > 0)
 	    sprintf(str, "%.15g", dval * (1 - GRASS_EPSILON));
 	    sprintf(str, "%.15g", dval * (1 - GRASS_EPSILON));
 	else
 	else
@@ -268,7 +268,7 @@ static void format_max(char *str, double dval)
     G_trim_decimal(str);
     G_trim_decimal(str);
     sscanf(str, "%lf", &dtmp);
     sscanf(str, "%lf", &dtmp);
     if (dtmp != dval) {  /* if  no zeros after decimal point were trimmed */
     if (dtmp != dval) {  /* if  no zeros after decimal point were trimmed */
-	/* increase dval by fraction of GRASS_EPSILON */
+	/* increase dval by by GRASS_EPSILON fraction */
 	if (dval > 0)
 	if (dval > 0)
 	    sprintf(str, "%.15g", dval * (1 + GRASS_EPSILON));
 	    sprintf(str, "%.15g", dval * (1 + GRASS_EPSILON));
 	else
 	else