MATH-843: integrated changes suggested by Dominik Gruntz.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1374395 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2012-08-17 18:45:49 +00:00
parent 43c489d7cb
commit 67dcc70533
1 changed files with 9 additions and 2 deletions

View File

@ -30,10 +30,17 @@ import org.apache.commons.math3.exception.util.LocalizedFormats;
*/
public class Precision {
/**
* <p>
* Largest double-precision floating-point number such that
* {@code 1 + EPSILON} is numerically equal to 1.
* <br/>
* {@code 1 + EPSILON} is numerically equal to 1. This value is an upper
* bound on the relative error due to rounding real numbers to double
* precision floating-point numbers.
* </p>
* <p>
* In IEEE 754 arithmetic, this is 2<sup>-53</sup>.
* </p>
*
* @see <a href="http://en.wikipedia.org/wiki/Machine_epsilon">Machine epsilon</a>
*/
public static final double EPSILON;