summaryrefslogtreecommitdiff
path: root/src/library/scala/Double.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-01 05:02:30 +0000
committerPaul Phillips <paulp@improving.org>2011-04-01 05:02:30 +0000
commit9b3852f26201aee7761637f89979dab2a71294a9 (patch)
treea26f7cd79256084b88153d1ba81e8c9d7c59dc59 /src/library/scala/Double.scala
parent305f49ce8f7358636bf81a7aca29d8ab42d98ed4 (diff)
downloadscala-9b3852f26201aee7761637f89979dab2a71294a9.tar.gz
scala-9b3852f26201aee7761637f89979dab2a71294a9.tar.bz2
scala-9b3852f26201aee7761637f89979dab2a71294a9.zip
A less ad hoc infrastructure for generating Any...
A less ad hoc infrastructure for generating AnyVal sources. A few more comments on said sources. No review.
Diffstat (limited to 'src/library/scala/Double.scala')
-rw-r--r--src/library/scala/Double.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/library/scala/Double.scala b/src/library/scala/Double.scala
index 857647b8a5..6fd7b0984b 100644
--- a/src/library/scala/Double.scala
+++ b/src/library/scala/Double.scala
@@ -16,7 +16,6 @@ package scala
* There is an implicit conversion from [[scala.Double]] => [[scala.runtime.RichDouble]]
* which provides useful non-primitive operations.
*/
-
final class Double extends AnyVal {
def toByte: Byte = sys.error("stub")
def toShort: Short = sys.error("stub")
@@ -121,9 +120,10 @@ final class Double extends AnyVal {
}
-
object Double extends AnyValCompanion {
- /** The smallest positive value greater than 0.0d.*/
+ /** The smallest positive value greater than 0.0d which is
+ * representable as a Double.
+ */
final val MinPositiveValue = java.lang.Double.MIN_VALUE
final val NaN = java.lang.Double.NaN
final val PositiveInfinity = java.lang.Double.POSITIVE_INFINITY
@@ -153,7 +153,7 @@ object Double extends AnyValCompanion {
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Double.
*
- * @param x the Double to be unboxed.
+ * @param x the java.lang.Double to be unboxed.
* @throws ClassCastException if the argument is not a java.lang.Double
* @return the Double resulting from calling doubleValue() on `x`
*/
@@ -163,3 +163,4 @@ object Double extends AnyValCompanion {
*/
override def toString = "object scala.Double"
}
+