Timeline for Generic and accurate floating point "equality"
Current License: CC BY-SA 3.0
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 7, 2018 at 15:09 | vote | accept | Dan Oberlam | ||
| Mar 21, 2018 at 0:56 | comment | added | bipll | Oh, and note that +0 and -0 are only equal in your implementation as soon as most other numbers are equal too. | |
| Mar 20, 2018 at 21:25 | comment | added | Dan Oberlam | @bipll that's good to know; I'd love an answer that addresses that issue :) | |
| Mar 20, 2018 at 21:25 | comment | added | Dan Oberlam | reference for bipll's comment here | |
| Mar 19, 2018 at 23:20 | comment | added | bipll | Please note that, in C++, a read from a member of a union after a write to another member is UB. | |
| Mar 19, 2018 at 21:26 | answer | added | G. Sliepen | timeline score: 4 | |
| Jan 28, 2018 at 3:55 | comment | added | Dan Oberlam | @user14717 I honestly don't understand any part of that. Feel free to answer (and please explain) with that! | |
| Jan 28, 2018 at 3:53 | comment | added | user14717 | Instead of using a 'maxDiff' parameter, why don't you use the mollified tolerance? math.stackexchange.com/questions/2486163/… | |
| Jan 19, 2018 at 18:14 | comment | added | Dan Oberlam | @Deduplicator That'll depend on your domain and how tolerant your application is. It's hard to come up with a number that works for all situations, so I require users to pick. | |
| Jan 19, 2018 at 14:22 | comment | added | Deduplicator | And how do you come to your threshold? | |
| Jan 19, 2018 at 14:20 | history | edited | Dan Oberlam | CC BY-SA 3.0 |
deleted 57 characters in body
|
| S Apr 20, 2016 at 23:33 | history | bounty ended | CommunityBot | ||
| S Apr 20, 2016 at 23:33 | history | notice removed | CommunityBot | ||
| S Apr 12, 2016 at 21:47 | history | bounty started | Dan Oberlam | ||
| S Apr 12, 2016 at 21:47 | history | notice added | Dan Oberlam | Draw attention | |
| Apr 8, 2016 at 14:42 | history | tweeted | twitter.com/StackCodeReview/status/718449047456124928 | ||
| Apr 7, 2016 at 4:53 | history | edited | Dan Oberlam | CC BY-SA 3.0 |
added 13 characters in body; edited title
|
| Apr 7, 2016 at 3:53 | comment | added | Dan Oberlam |
@Quuxplusone do you mean the == operator? And I'd say that given that most real numbers cannot be exactly represented as a float or double we usually don't care about exact equality, but approximate equality.
|
|
| Apr 7, 2016 at 3:14 | comment | added | Quuxplusone |
Can you explain a bit more in your question what your code is trying to do? Specifically, what would you say to someone who asked "why don't you just use the < operator?"?
|
|
| Apr 7, 2016 at 1:37 | history | asked | Dan Oberlam | CC BY-SA 3.0 |