[GRASS5] potential problems in d.vect.thematic when using a column of type real in postgresql

Glynn Clements glynn at gclements.plus.com
Fri Sep 16 04:08:44 EDT 2005


Hamish wrote:

> >  thus the only possible rewrite for 'a=b' would be:
> > 
> > 'a/b < 1+1e-10 and b/a < 1+1e-10'
> > 
> > which might run into division by zero errors and so on.
> 
> note for floating points, divide by zero just gives a value of "nan".
> (not a number)

Dividing zero by zero gives NaN; dividing non-zero values by zero
gives infinity.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list