Double

object Double extends AnyValCompanion
Companion
class
Source
Double.scala

Value members

Concrete methods

def box(x: Double): 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.

Value Params
x

the Double to be boxed

Returns

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

Source
Double.scala
override def toString: String

The String representation of the scala.Double companion object.

The String representation of the scala.Double companion object.

Definition Classes
Source
Double.scala
def unbox(x: Object): 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.

Value Params
x

the java.lang.Double to be unboxed.

Returns

the Double resulting from calling doubleValue() on x

Throws
ClassCastException

if the argument is not a java.lang.Double

Source
Double.scala

Concrete fields

final val MaxValue: 1.7976931348623157E308d

The largest finite positive number representable as a Double.

The largest finite positive number representable as a Double.

Source
Double.scala
final val MinPositiveValue: 4.9E-324d

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

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

Source
Double.scala
final val MinValue: -1.7976931348623157E308d

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.

Source
Double.scala
final val NaN: NaNd
final val NegativeInfinity: -Infinityd
final val PositiveInfinity: Infinityd