[GRASS5] Re: [GRASS_DE] r.mapcalc round()
Justin Hickey
jhickey at hpcc.nectec.or.th
Mon May 21 01:12:01 EDT 2001
Hi Glynn
Glynn Clements wrote:
>
> 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.
Duhh! I must have replied to that just before I dozed off! :-) Stupidity
reigns supreme for me sometimes.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
More information about the grass-dev
mailing list