lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Underwood <wun...@wunderwood.org>
Subject Re: Functions, floats and doubles
Date Fri, 13 Nov 2009 18:01:20 GMT
Float is almost never good enough. The loss of precision is horrific.

wunder

On Nov 13, 2009, at 9:58 AM, Yonik Seeley wrote:

> On Fri, Nov 13, 2009 at 12:52 PM, Grant Ingersoll <gsingers@apache.org> wrote:
>> Implementing my first function (distance stuff) and notices that functions seem to
have a float bent to them.  Not even sure what would be involved, but there are cases for
distance that I could see wanting double precision.  Thoughts?
> 
> 
> It's an issue in general.
> 
> But for something like gdist(point_a,point_b), the internal
> calculations can be done in double precision and if the result is cast
> to a float at the end, it should be good enough for most uses, right?
> 
> -Yonik
> http://www.lucidimagination.com
> 


Mime
View raw message