I wrote some code with segments on a line and I strive to save maximum precision from the inputs. Do I have to hold coordinates of both ends of the segment or is start and length enough? I have to have the length if I want to keep my current nice architecture, thus the desire to omit the right end.
Or formally as stated in the question:
Let's say I have 0 <= a <= b
What are the cases when (b - a) + a
will not yield exactly b
?