[GRASS5] Re: [GRASS-CVS] hamish: grass6/scripts/r.fillnulls r.fillnulls,1.10,1.11
Glynn Clements
glynn at gclements.plus.com
Fri Mar 4 04:45:44 EST 2005
Markus Neteler wrote:
> > remove AWK for doing decimal multiplication -- broke when decimal point was a ",".
> > The buffer distance is pretty arbitrary anyway, so not a big deal if we lose
> > sub-meter precision (I hope).
> >
>
> What about using
>
> LC_ALL=C echo 0.3 0.3 | awk '{printf "%.8f", ($1 + $2)}'
>
> ?
echo 0.3 0.3 | LC_ALL=C awk '{printf "%.8f", ($1 + $2)}'
Temporary environment bindings apply to the individual commands rather
than to the pipeline as a whole.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list