approxEqual() has fooled me for a long time...
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 1 16:42:57 PDT 2016
On Monday, 1 August 2016 at 23:41:39 UTC, Basile B. wrote:
> On Monday, 1 August 2016 at 23:32:11 UTC, deadalnix wrote:
>> On Wednesday, 20 October 2010 at 10:57:50 UTC, Don wrote:
>>> Unfortunately, somebody on the ng insisted that it should be
>>> called feqrel(). Stupidly, I listened. And now nobody uses
>>> my masterpiece because it has a totally sucky name.
>>
>> These absurd contraption to win 5 chars are ridiculous.
>>
>> I'm sure if you make some stats in various projects, the
>> functions with these stupid names are used way less because
>> nobody has any idea what feqrel and alike stands for.
>
> Everybody wants the same result from aproxEqual...
>
> unittest
> {
> assert(approxEqual(1600.0f, 1600.1f)); // true
> assert(approxEqual(1.0f, 1.1f)); // true
> }
actually false false...
More information about the Digitalmars-d
mailing list