Okay thanks, makes sense.
Strictly speaking nothing is preventing me from taking exact rational inputs, but I was just interested in the best way to handle this problem given an arbitrary collection of floating-point numbers.
For the specific example I have in mind though I’m taking elements in a range object e.g. 0:0.01:1
and testing them with another number, so this would be amenable to rationals.