[GRASS-dev] r.mapcalc/r.univar and 0.0/rand

Maciej Sieczka tutey at o2.pl
Thu Sep 14 19:09:19 EDT 2006


Hi,

I noticed that if I create DCELL raster by

$ r.mapcalc 'map=0.0'

the 'r.univar map' says the min. value is:

minimum: 0

But when I create a 0 DCELL raster using rand function:

$ r.mapcalc 'map=rand(0.0,2.0)'

the min. value reported by 'r.univar map' is different:

minimum: 7.81597e-14



Why this difference? I would expect "minimum: 0" in both cases.

Maciek




More information about the grass-dev mailing list