All of us use
epsilons in their codes for problems dealing with floating point numbers. Do you have some method of choosing what the value of
epsilon to use or use some fixed number. I just solve an old geometry problem: 8D - Два товарища and when I used
eps = 1e-9 I failed systests, but when I made
eps = 1e-10 my solution passed. This is not the first time I fail because of choosing inappropriate value of
eps and I was wondering if you guys use some methods of choosing the value.
PS: In this problem I mainly use epsilon to write
a < b + esp instead of
a <= b.