Skip to content

Commit 0818d76

Browse files
committed
Fixed EPSILON. (Closes PhilJay#2432)
Closes PhilJay#2424 Closes PhilJay#2394 Closes PhilJay#2393 Closes PhilJay#2385
1 parent ee020bb commit 0818d76

File tree

1 file changed

+2
-2
lines changed
  • MPChartLib/src/main/java/com/github/mikephil/charting/utils

1 file changed

+2
-2
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/utils/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ public abstract class Utils {
4040
public final static float FDEG2RAD = ((float) Math.PI / 180.f);
4141

4242
@SuppressWarnings("unused")
43-
public final static double DOUBLE_EPSILON = Double.longBitsToDouble(Double.doubleToLongBits(1.0) + 1);
43+
public final static double DOUBLE_EPSILON = Double.longBitsToDouble(1);
4444

4545
@SuppressWarnings("unused")
46-
public final static float FLOAT_EPSILON = Float.intBitsToFloat(Float.floatToIntBits(1f) + 1);
46+
public final static float FLOAT_EPSILON = Float.intBitsToFloat(1);
4747

4848
/**
4949
* initialize method, called inside the Chart.init() method.

0 commit comments

Comments
 (0)