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

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

Comment (by Nikos Alexandris):

I also think that two simple examples in the manual would be useful in
understanding the use of round(x,y) and round(x,y,z).

I tested locally adding
{{{
split_window_expression = '(round({swe}, 2,
0.5))'.format(swe=split_window_expression)
}}}
in
https://gitlab.com/NikosAlexandris/i.landsat8.swlst/blob/master/i.landsat8.swlst.py
after a bit of trial and error.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1976#comment:14&gt;
GRASS GIS <https://grass.osgeo.org>