#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
thread]
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1976>
GRASS GIS <http://grass.osgeo.org>