TOL becomes 1e-3
fix #103
client-side uses the same comparison method as in backend
 fix #103