Skip to content

r.mapcalc: computing using fixed number of decimal places #5365

Answered by marisn
dhdeangelis asked this question in Q&A
Discussion options

You must be logged in to vote

No. r.mapcalc only supports integers, floats and doubles. One way out would be multiply all values by constant (e.g. 1000) and then cast to integers. Perform all calculations with integers and then go back to floats.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dhdeangelis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants