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

GRASS GIS trac at osgeo.org
Fri May 17 14:24:46 PDT 2013

#1976: Allow rounding of floating numbers
 Reporter:  pvanbosgeo   |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Default      |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
 The round() function in r.mapcalc always returns an integer, regardless of
 its argument types. Integers are always 32-bit, so the result is limited
 to the range +/- 2147483647 (2^31-1).

 Suggestion: extend the function to allow to round numbers outside the
 integer range, and to round with a specific number of decimal places, like
 e.g., the function round() in R.

 Various options have been discussed on the mailing list, see this
 [http://lists.osgeo.org/pipermail/grass-dev/2013-May/063827.html email

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

More information about the grass-dev mailing list