`var errMargin = epsilon * Math.abs(expected);` would render the tolerance ineffective with `expected` being `0`. Given that `0` might be a more often used result, due to its simpleness, but `actual` still being the result of some calculations with some rounding errors, I did not want to plant a surprise-does-not-work in here.