Always false float comparisons
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 17 09:41:10 PDT 2016
On 16.05.2016 22:10, Andrei Alexandrescu wrote:
>
>> I bring
>> up our very own Phobos sum algorithm, which was re-implemented later
>> with the Kahan method to reduce precision loss.
>
> Kahan is clear, ingenous, and understandable and a great part of the
> stdlib. I don't see what the point is here. Naive approaches aren't
> going to take anyone far, regardless of precision.
Kahan summation is not guaranteed to work in D.
More information about the Digitalmars-d
mailing list