when comparing two doubles, you check that the difference of the two is smaller than "epsilon".

to be consistent throughout the framework, this should probably be set centrally and also be steerable in some way.
