Searched defs:maxUlps (Results 1 - 1 of 1) sorted by relevance
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
H A D | MathUtils.java | 474 * Two float numbers are considered equal if there are {@code (maxUlps - 1)} 483 * @param maxUlps {@code (maxUlps - 1)} is the number of floating point 485 * @return {@code true} if there are fewer than {@code maxUlps} floating 489 public static boolean equals(float x, float y, int maxUlps) { argument 490 // Check that "maxUlps" is non-negative and small enough so that 492 assert maxUlps > 0 && maxUlps < NAN_GAP; 505 final boolean isEqual = FastMath.abs(xInt - yInt) <= maxUlps; 512 * by {@link #equals(float,float,int) equals(x, y, maxUlps)} 522 equalsIncludingNaN(float x, float y, int maxUlps) argument 679 equals(double x, double y, int maxUlps) argument 710 equalsIncludingNaN(double x, double y, int maxUlps) argument [all...] |
Completed in 24 milliseconds