class MathUtil {

	@Pure
	public static int compareEpsilon(double v1, double v2) {
		final double v = v1 - v2;
		if (Math.abs(v) < Math.ulp(v)) {
			return 0;
		}
		if (v <= 0.) {
			return -1;
		}
		return 1;
	}

	private  MathUtil();

}