C++ Logo


Advanced search

Re: new approximately equal operators

From: Michael Hava <mfh_at_[hidden]>
Date: Tue, 9 Jun 2020 10:25:50 +0000
From my experience with floating point numbers: there is no singular epsilon!

The allowed difference between two “equal” values very much depends on the context and can vary for all algorithms in your code.

From: Std-Proposals <std-proposals-bounces_at_[hidden]> On Behalf Of Vishal Oza via Std-Proposals
Sent: Tuesday, June 9, 2020 12:26 AM
To: Nikolay Mihaylov <nmmm_at_[hidden]>
Cc: Vishal Oza <vickoza_at_[hidden]>; sotrdg sotrdg via Std-Proposals <std-proposals_at_[hidden]>
Subject: Re: [std-proposals] new approximately equal operators

1. epsilon would be a very small number close to zero but not zero. Having epsilon as a variable might not be needed in there is a way to track the accuracy of floating point error over the course of the calculation to the operator.or we might be about to use the exponent to compute what epsilon value seem reasonable

Received on 2020-06-09 05:29:00