Re: float8 comparison failure

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Radek Kanovsky <rk@dat.cz>
Cc: pgsql-bugs@hub.org
Date: 2000-07-28T15:16:15Z
Lists: pgsql-bugs
Radek Kanovsky <rk@dat.cz> writes:
> [ float8 values that appear equal are not always equal ]

This is not a bug, it's an inherent consequence of the inaccuracy of
floating-point math.  Use some other data type (numeric, maybe) if
you expect to be able to do exact equality comparisons.

			regards, tom lane