scala

Double

class Double extends Any with AnyVal

Class Double belongs to the value classes whose instances are not represented as objects by the underlying host system. There is an implicit conversion from instances of Double to instances of RichDouble which provides useful non-primitive operations. All value classes inherit from class AnyVal.

Values MAX_DOUBLE and MIN_DOUBLE are defined in object scala.Math.

Class Double belongs to the value classes whose instances are not represented as objects by the underlying host system. There is an implicit conversion from instances of Double to instances of RichDouble which provides useful non-primitive operations. All value classes inherit from class AnyVal.

Values MAX_DOUBLE and MIN_DOUBLE are defined in object scala.Math.

attributes: final
go to: companion
linear super types: AnyVal, Any
source: Double.scala
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Double
  2. AnyVal
  3. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Value Members

  1. def != ( x : Double ) : Boolean

  2. def != ( x : Float ) : Boolean

  3. def != ( x : Long ) : Boolean

  4. def != ( x : Int ) : Boolean

  5. def != ( x : Char ) : Boolean

  6. def != ( x : Short ) : Boolean

  7. def != ( x : Byte ) : Boolean

  8. def != ( arg0 : Any ) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  9. def ## () : Int

    attributes: final
    definition classes: Any
  10. def % ( x : Double ) : Double

  11. def % ( x : Float ) : Double

  12. def % ( x : Long ) : Double

  13. def % ( x : Int ) : Double

  14. def % ( x : Char ) : Double

  15. def % ( x : Short ) : Double

  16. def % ( x : Byte ) : Double

  17. def * ( x : Double ) : Double

  18. def * ( x : Float ) : Double

  19. def * ( x : Long ) : Double

  20. def * ( x : Int ) : Double

  21. def * ( x : Char ) : Double

  22. def * ( x : Short ) : Double

  23. def * ( x : Byte ) : Double

  24. def + ( x : Double ) : Double

  25. def + ( x : Float ) : Double

  26. def + ( x : Long ) : Double

  27. def + ( x : Int ) : Double

  28. def + ( x : Char ) : Double

  29. def + ( x : Short ) : Double

  30. def + ( x : Byte ) : Double

  31. def + ( x : String ) : String

  32. def - ( x : Double ) : Double

  33. def - ( x : Float ) : Double

  34. def - ( x : Long ) : Double

  35. def - ( x : Int ) : Double

  36. def - ( x : Char ) : Double

  37. def - ( x : Short ) : Double

  38. def - ( x : Byte ) : Double

  39. def / ( x : Double ) : Double

  40. def / ( x : Float ) : Double

  41. def / ( x : Long ) : Double

  42. def / ( x : Int ) : Double

  43. def / ( x : Char ) : Double

  44. def / ( x : Short ) : Double

  45. def / ( x : Byte ) : Double

  46. def < ( x : Double ) : Boolean

  47. def < ( x : Float ) : Boolean

  48. def < ( x : Long ) : Boolean

  49. def < ( x : Int ) : Boolean

  50. def < ( x : Char ) : Boolean

  51. def < ( x : Short ) : Boolean

  52. def < ( x : Byte ) : Boolean

  53. def <= ( x : Double ) : Boolean

  54. def <= ( x : Float ) : Boolean

  55. def <= ( x : Long ) : Boolean

  56. def <= ( x : Int ) : Boolean

  57. def <= ( x : Char ) : Boolean

  58. def <= ( x : Short ) : Boolean

  59. def <= ( x : Byte ) : Boolean

  60. def == ( x : Double ) : Boolean

  61. def == ( x : Float ) : Boolean

  62. def == ( x : Long ) : Boolean

  63. def == ( x : Int ) : Boolean

  64. def == ( x : Char ) : Boolean

  65. def == ( x : Short ) : Boolean

  66. def == ( x : Byte ) : Boolean

  67. def == ( arg0 : Any ) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  68. def > ( x : Double ) : Boolean

  69. def > ( x : Float ) : Boolean

  70. def > ( x : Long ) : Boolean

  71. def > ( x : Int ) : Boolean

  72. def > ( x : Char ) : Boolean

  73. def > ( x : Short ) : Boolean

  74. def > ( x : Byte ) : Boolean

  75. def >= ( x : Double ) : Boolean

  76. def >= ( x : Float ) : Boolean

  77. def >= ( x : Long ) : Boolean

  78. def >= ( x : Int ) : Boolean

  79. def >= ( x : Char ) : Boolean

  80. def >= ( x : Short ) : Boolean

  81. def >= ( x : Byte ) : Boolean

  82. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  83. def equals ( arg0 : Any ) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: Any
  84. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: Any
  85. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  86. def toByte : Byte

  87. def toChar : Char

  88. def toDouble : Double

  89. def toFloat : Float

  90. def toInt : Int

  91. def toLong : Long

  92. def toShort : Short

  93. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Any
  94. def unary_+ : Double

  95. def unary_- : Double

Inherited from AnyVal

Inherited from Any