object ExtremeD
The ExtremeD
object contains constants representing extreme values for
Double (IEEE 754 double precision floating point numbers).
- See also
http://docs.oracle.com/javase/8/docs/api/java/lang/Double.html
en.wikipedia.org/wiki/Double-precision_floating-point_format ------------------------------------------------------------------------------ 64 bits: 1 sign-bit, 11 exponent-bits, 52 mantissa-bits + 1 implicit
- Alphabetic
- By Inheritance
- ExtremeD
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val EPSILON: Double
Smallest double such that 1.0 + EPSILON != 1.0, slightly above 2^-53. Also, known as the "machine epsilon".
Smallest double such that 1.0 + EPSILON != 1.0, slightly above 2^-53. Also, known as the "machine epsilon".
- See also
https://issues.scala-lang.org/browse/SI-3791
- val MAX_EXPONENT: Int
Largest exponent a finite double variable may have.
- val MAX_VALUE: Double
Largest positive finite value of type double, 2^1023
- val MIN_EXPONENT: Int
Smallest exponent a normalized double variable may have.
- val MIN_NORMAL: Double
Smallest positive normal value of type double, 2^-1022 (retains full precision). Also, the smallest double such that 1.0 / 'SAFE_MIN' does not overflow.
- val MIN_VALUE: Double
Smallest positive nonzero value of type double, 2^-1074 (minimal precision).
- val MOST_NEGATIVE: Double
Most negative finite value of type double.
- val NEGATIVE_INFINITY: Double
Special value representing negative infinity: 1111111111110...0 Ex: -1.0 / 0.0
Special value representing negative infinity: 1111111111110...0 Ex: -1.0 / 0.0
- See also
http://stackoverflow.com/questions/13317566/what-are-the-infinity-constants-in-java-really
- val NaN: Double
Special value representing an undefined value, i.e., "Not a Number": s11111111111m (m != 0) Ex: 0.0 / 0.0 = indeterminate, sqrt (-1.0) = Complex (0.0 + 1.0i) (not representable as a Double)
Special value representing an undefined value, i.e., "Not a Number": s11111111111m (m != 0) Ex: 0.0 / 0.0 = indeterminate, sqrt (-1.0) = Complex (0.0 + 1.0i) (not representable as a Double)
- See also
https://en.wikipedia.org/wiki/NaN
- val POSITIVE_INFINITY: Double
Special value representing positive infinity: 0111111111110...0 Ex: 1.0 / 0.0
Special value representing positive infinity: 0111111111110...0 Ex: 1.0 / 0.0
- See also
http://stackoverflow.com/questions/13317566/what-are-the-infinity-constants-in-java-really
- val TOL: Double
Default tolerance should be much larger than the "machine epsilon".
Default tolerance should be much larger than the "machine epsilon". Application dependent => redefine as needed per application.
- val _2_53: Double
2^-53 = 1.1102230246251565E-16 is too small for the "machine epsilon".
- def approx(x: Double, y: Double): Boolean
Return true if x == y approximately, i.e., the difference is strictly less than 'TOL'.
Return true if x == y approximately, i.e., the difference is strictly less than 'TOL'.
- x
the first value to compare
- y
the second value to compare
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated