Skip to content

Commit

Permalink
Fixed EPSILON. (Closes #2432)
Browse files Browse the repository at this point in the history
Closes #2424
Closes #2394
Closes #2393
Closes #2385
  • Loading branch information
danielgindi committed Nov 16, 2016
1 parent ee020bb commit 0818d76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public abstract class Utils {
public final static float FDEG2RAD = ((float) Math.PI / 180.f);

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

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

/**
* initialize method, called inside the Chart.init() method.
Expand Down

0 comments on commit 0818d76

Please sign in to comment.