Javadoc grammar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058072 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41f6eaa8e3
commit
ff3c66cbc7
|
@ -469,7 +469,7 @@ public final class MathUtils {
|
||||||
* Returns true if both arguments are equal or within the range of allowed
|
* Returns true if both arguments are equal or within the range of allowed
|
||||||
* error (inclusive).
|
* error (inclusive).
|
||||||
* Two float numbers are considered equal if there are {@code (maxUlps - 1)}
|
* Two float numbers are considered equal if there are {@code (maxUlps - 1)}
|
||||||
* (or less) floating point numbers between them (i.e. two adjacent floating
|
* (or fewer) floating point numbers between them, i.e. two adjacent floating
|
||||||
* point numbers are considered equal.
|
* point numbers are considered equal.
|
||||||
* Adapted from <a
|
* Adapted from <a
|
||||||
* href="http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm">
|
* href="http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm">
|
||||||
|
@ -479,7 +479,7 @@ public final class MathUtils {
|
||||||
* @param y second value
|
* @param y second value
|
||||||
* @param maxUlps {@code (maxUlps - 1)} is the number of floating point
|
* @param maxUlps {@code (maxUlps - 1)} is the number of floating point
|
||||||
* values between {@code x} and {@code y}.
|
* values between {@code x} and {@code y}.
|
||||||
* @return {@code true} if there are less than {@code maxUlps} floating
|
* @return {@code true} if there are fewer than {@code maxUlps} floating
|
||||||
* point values between {@code x} and {@code y}.
|
* point values between {@code x} and {@code y}.
|
||||||
*/
|
*/
|
||||||
public static boolean equals(double x, double y, int maxUlps) {
|
public static boolean equals(double x, double y, int maxUlps) {
|
||||||
|
|
Loading…
Reference in New Issue