summaryrefslogtreecommitdiff
path: root/src/library/scala/util/DynamicVariable.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-06-10 21:48:47 +0000
committerPaul Phillips <paulp@improving.org>2009-06-10 21:48:47 +0000
commita46b8b15010eb523cedd8dd23ff7423ca5c73942 (patch)
treee9194794051db190c18f4011a0466cb0260083d7 /src/library/scala/util/DynamicVariable.scala
parent6d09e964f74093d66fa6041c10661df279cdab41 (diff)
downloadscala-a46b8b15010eb523cedd8dd23ff7423ca5c73942.tar.gz
scala-a46b8b15010eb523cedd8dd23ff7423ca5c73942.tar.bz2
scala-a46b8b15010eb523cedd8dd23ff7423ca5c73942.zip
Trying to bring BigDecimal all the way up to sp...
Trying to bring BigDecimal all the way up to speed with its java counterpart. Added a MathContext val and perform all operations with that MathContext, and an apply method which accepts a math context so you can e.g.: val x = BigDecimal(1.0) x / 3 // ArithmeticException x(DECIMAL32) / 3 // 0.3333333 Also added most of the java BigDecimal methods which for whatever reason weren't exposed by the wrapper. Precision to infinity... and beyond!
Diffstat (limited to 'src/library/scala/util/DynamicVariable.scala')
0 files changed, 0 insertions, 0 deletions