Packages

object Double extends AnyValCompanion

Source
Double.scala
Linear Supertypes
AnyValCompanion, Specializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Double
  2. AnyValCompanion
  3. Specializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final val MaxValue: Double(1.7976931348623157E308)

    The largest finite positive number representable as a Double.

  2. final val MinPositiveValue: Double(4.9E-324)

    The smallest positive value greater than 0.0d which is representable as a Double.

  3. final val MinValue: Double

    The negative number with the greatest (finite) absolute value which is representable by a Double.

    The negative number with the greatest (finite) absolute value which is representable by a Double. Note that it differs from java.lang.Double.MIN_VALUE, which is the smallest positive value representable by a Double. In Scala that number is called Double.MinPositiveValue.

  4. final val NaN: Double(NaN)
  5. final val NegativeInfinity: Double(-Infinity)
  6. final val PositiveInfinity: Double(Infinity)
  7. def box(x: Double): java.lang.Double

    Transform a value type into a boxed reference type.

    Transform a value type into a boxed reference type.

    Runtime implementation determined by scala.runtime.BoxesRunTime.boxToDouble. See src/library/scala/runtime/BoxesRunTime.java.

    x

    the Double to be boxed

    returns

    a java.lang.Double offering x as its underlying value.

  8. def toString(): String

    The String representation of the scala.Double companion object.

    The String representation of the scala.Double companion object.

    returns

    a String representation of the object.

    Definition Classes
    Double → AnyRef → Any
  9. def unbox(x: AnyRef): Double

    Transform a boxed type into a value type.

    Transform a boxed type into a value type. Note that this method is not typesafe: it accepts any Object, but will throw an exception if the argument is not a java.lang.Double.

    Runtime implementation determined by scala.runtime.BoxesRunTime.unboxToDouble. See src/library/scala/runtime/BoxesRunTime.java.

    x

    the java.lang.Double to be unboxed.

    returns

    the Double resulting from calling doubleValue() on x

    Exceptions thrown

    ClassCastException if the argument is not a java.lang.Double