The machine epsilon is canonically defined as the smallest number which added to one, gives a result different from one.
There is a Double.Epsilon
but the name is very misleading: it is the smallest (denormalized) Double
value representable, and thus useless for any kind of numeric programming.
I'd like to get the true epsilon for the Double
type, so that not to have to hardcode tolerances into my program. How do I do this ?