[GRASS5] Re: [GRASS_DE] r.mapcalc round()
Glynn Clements
glynn.clements at virgin.net
Thu May 17 07:58:25 EDT 2001
Justin Hickey wrote:
> > r.mapcalc x1=1.4
> >
> > <snip>
> >
> > Starting to round:
> > r.mapcalc x1round="round(x1)"
> > EXECUTING x1round = ... 100%
> > CREATING SUPPORT FILES FOR x1round
> > range: 1 1
> > -> rounding is o.k.
>
> Huh? Why is rounding 1.4 = 1 and not 0?
Huh? Did you misread "1.4" as "0.4"? Both floor(1.4) and round(1.4)
are 1, whilst ceil(1.4) is 2.
--
Glynn Clements <glynn.clements at virgin.net>
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list