diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-01 05:02:30 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-01 05:02:30 +0000 |
commit | 9b3852f26201aee7761637f89979dab2a71294a9 (patch) | |
tree | a26f7cd79256084b88153d1ba81e8c9d7c59dc59 /src/library/scala/Float.scala | |
parent | 305f49ce8f7358636bf81a7aca29d8ab42d98ed4 (diff) | |
download | scala-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/Float.scala')
-rw-r--r-- | src/library/scala/Float.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/library/scala/Float.scala b/src/library/scala/Float.scala index 59acc73a4d..38819e5d16 100644 --- a/src/library/scala/Float.scala +++ b/src/library/scala/Float.scala @@ -16,7 +16,6 @@ package scala * There is an implicit conversion from [[scala.Float]] => [[scala.runtime.RichFloat]] * which provides useful non-primitive operations. */ - final class Float extends AnyVal { def toByte: Byte = sys.error("stub") def toShort: Short = sys.error("stub") @@ -121,9 +120,10 @@ final class Float extends AnyVal { } - object Float extends AnyValCompanion { - /** The smallest positive value greater than 0.0f.*/ + /** The smallest positive value greater than 0.0f which is + * representable as a Float. + */ final val MinPositiveValue = java.lang.Float.MIN_VALUE final val NaN = java.lang.Float.NaN final val PositiveInfinity = java.lang.Float.POSITIVE_INFINITY @@ -153,7 +153,7 @@ object Float extends AnyValCompanion { * method is not typesafe: it accepts any Object, but will throw * an exception if the argument is not a java.lang.Float. * - * @param x the Float to be unboxed. + * @param x the java.lang.Float to be unboxed. * @throws ClassCastException if the argument is not a java.lang.Float * @return the Float resulting from calling floatValue() on `x` */ @@ -163,3 +163,4 @@ object Float extends AnyValCompanion { */ override def toString = "object scala.Float" } + |