diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 14:41:57 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-21 14:41:57 -0700 |
commit | 1976172946ae646dbf007bd4bbf7839a12483318 (patch) | |
tree | a4aa5b096c09f3e268a4964cd07da6959a22d231 | |
parent | 68c6ba7e59befa88b2f383dd7eca71a9329a8b6d (diff) | |
parent | c58b0abadd4ae02bdf44ce1122de6c66c7d3e999 (diff) | |
download | scala-1976172946ae646dbf007bd4bbf7839a12483318.tar.gz scala-1976172946ae646dbf007bd4bbf7839a12483318.tar.bz2 scala-1976172946ae646dbf007bd4bbf7839a12483318.zip |
Merge pull request #2427 from aldenml/bigdecimal-doc-fix
Fix BigDecimal documentation for primitive conversion methods.
-rw-r--r-- | src/library/scala/math/BigDecimal.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/math/BigDecimal.scala b/src/library/scala/math/BigDecimal.scala index d8f4337b8f..c5e5699468 100644 --- a/src/library/scala/math/BigDecimal.scala +++ b/src/library/scala/math/BigDecimal.scala @@ -333,21 +333,21 @@ extends ScalaNumber with ScalaNumericConversions with Serializable { override def byteValue = intValue.toByte /** Converts this BigDecimal to a Short. - * If the BigDecimal is too big to fit in a Byte, only the low-order 16 bits are returned. + * If the BigDecimal is too big to fit in a Short, only the low-order 16 bits are returned. * Note that this conversion can lose information about the overall magnitude of the * BigDecimal value as well as return a result with the opposite sign. */ override def shortValue = intValue.toShort /** Converts this BigDecimal to a Char. - * If the BigDecimal is too big to fit in a char, only the low-order 16 bits are returned. + * If the BigDecimal is too big to fit in a Char, only the low-order 16 bits are returned. * Note that this conversion can lose information about the overall magnitude of the * BigDecimal value and that it always returns a positive result. */ def charValue = intValue.toChar /** Converts this BigDecimal to an Int. - * If the BigDecimal is too big to fit in a char, only the low-order 32 bits + * If the BigDecimal is too big to fit in an Int, only the low-order 32 bits * are returned. Note that this conversion can lose information about the * overall magnitude of the BigDecimal value as well as return a result with * the opposite sign. @@ -355,7 +355,7 @@ extends ScalaNumber with ScalaNumericConversions with Serializable { def intValue = this.bigDecimal.intValue /** Converts this BigDecimal to a Long. - * If the BigDecimal is too big to fit in a char, only the low-order 64 bits + * If the BigDecimal is too big to fit in a Long, only the low-order 64 bits * are returned. Note that this conversion can lose information about the * overall magnitude of the BigDecimal value as well as return a result with * the opposite sign. |