==== What is the problem?
We test for strict equality when deciding which candidates to eliminate.
Testing equality on floats can lead to inconsistent results.
One way to deal with this is test whether floats are within a specified epsilon of one another.
For example, you can see below that candidates 10, 11 and 12 are eliminated due to having the lowest number of votes (82). Candidate 9 is shown as also having 82 votes, but is not eliminated at the same time. This is arguably correct, as Candidate 9 has slightly more than 82 votes (by ~4.8E-17) ([[https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1449|Tally on beta]]):
{F34591775}
In another example, Candidate 9 is eliminated first, even though they technically have more votes than 10, 11 and 12 (by ~5.15E-15). ([[https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1677|Tally on beta]]):
{F34611040}
==== Steps to reproduce problem
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1677 ([[https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/12_9_4928_1803187550.blt|blt file]])
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1663 ([[https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/12_9_4996_1067098093.blt|blt file]])
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1649 ([[https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/12_9_5000_1830523430.blt|blt file]])
- https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/tally/1449 ([[https://github.com/dominic998/SecurePoll-Test-Data/blob/main/test_data/20_9_5000_439818328.blt|blt file]])
==== Environment
**Wiki(s):** https://vote.wikimedia.beta.wmflabs.org SecurePoll 3.0.0 (ab0903e) 06:24, 20 August 2021.