Always false float comparisons
Joseph Rushton Wakeling via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 16 03:26:20 PDT 2016
On Monday, 16 May 2016 at 09:56:07 UTC, Walter Bright wrote:
>> What you call "illegitimate" are really just legitimate
>> examples that you
>> dismiss because they do not match your own specific experience.
>
> Of course, legitimate is a matter of opinion. Can code be
> written to rely on lower precision? Of course. Is it portable
> to any standard conforming C/C++ compiler? Nope. Can algorithms
> be coded to not require reduced precision? I'm pretty sure they
> can be, and should be.
If I've understood people's arguments right, the point of concern
is that there are use cases where the programmer wants to be able
to guarantee _a specific precision of their choice_.
That strikes me as a legitimate use-case that it would be worth
trying to support.
More information about the Digitalmars-d
mailing list