[GRASS5] Using fp

Eric G. Miller egm2 at jps.net
Sun Feb 24 17:08:13 EST 2002

On Sun, Feb 24, 2002 at 09:36:21PM +0000, Gualter Barbas Baptista wrote:
> I'm having some problems with the map operations because GRASS insists 
> in truncating the cell values to integers.
> I saw in some older documents that fp support would be integrated in 
> GRASS5, but then I didn't find anything on how to use it (since most of 
> the documents/tutorials refer to version 4.x).
> Is this really implemented now? How can I convert my maps and/or make 
> r.mapcalc operate with fp numbers?

float (<expression>).  If one of the input rasters is a float, the
output should stay floating point unless some integer operation is
performed "int (...)".

Eric G. Miller <egm2 at jps.net>

More information about the grass-dev mailing list