[GRASS-dev] [GRASS GIS] #1976: r.mapcalc: Allow rounding of floating numbers

GRASS GIS trac at osgeo.org
Thu May 23 08:33:30 PDT 2013

#1976: r.mapcalc: Allow rounding of floating numbers
 Reporter:  pvanbosgeo   |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Raster       |     Version:  unspecified              
 Keywords:  r.mapcalc    |    Platform:  Unspecified              
      Cpu:  Unspecified  |  

Comment(by pvanbosgeo):

 Hi Glynn, this looks and works great. Initially I wasn't really clear
 about the implementation, but the round(x,y) seems to do exactly what I
 hoped for (including rounding numbers outside the integer range), great!

 The explanations for round(x,y) and round(x,y,z) in the r.mapcalc help
 file are perhaps not immediately clear (but that might be me). Maybe it is
 possible to get some examples in the help file? In any case, great work.

Ticket URL: <http://trac.osgeo.org/grass/ticket/1976#comment:7>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list