4 ms·
If you require a distinct point then you can check if a is smaller than the minimum increment that can be added to b, and add that increment instead, but in the
by aardvark179 5y ago
If you require a distinct point then you can check if a is smaller than the minimum increment that can be added to b, and add that increment instead, but in the few cases I’ve needed that sort of behaviour it has been easier to do the calculation and then check for equality.