b8063701

Rounding error when using constant raster

Discussion created by b8063701 on Feb 22, 2012
Latest reply on Feb 22, 2012 by Dan_Patterson
I created a constant raster using the toolbox with value 1 (float)

I have the following python code:
a = (Raster('myRaster') * 1.724)

When I print the maximum/minimum of 'a', I get 1.72399997711

I also have a feeling that these rounding errors are causing some other problems in my script.

How can I fix this without manually rounding every operation?

Outcomes