Re: geo_decls.h oopsie... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: geo_decls.h oopsie...
Date
Msg-id 4457.1013648868@sss.pgh.pa.us
Whole thread Raw
In response to geo_decls.h oopsie...  ("Dann Corbit" <DCorbit@connx.com>)
List pgsql-hackers
"Dann Corbit" <DCorbit@connx.com> writes:
> But to compare floating point, those are simply wrong.

See previous discussions concerning the quality of the builtin geometric
types.  Not clear that it's worth worrying about, unless you want to go
in for a wholesale overhaul.  My own opinion is that PostGIS will
supersede the need for these types...

> Here is a more reliable way to make a comparison:

Not like that.  Perhaps use a fraction of the absolute value of the
one with larger absolute value.  As-is it's hard to tell how FLT_EPSILON
is measured.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: NAMEDATALEN Changes
Next
From: Neil Conway
Date:
Subject: Re: NAMEDATALEN Changes