public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Use BigDecimal.ROUND_HALF_UP instead of RoundingMode.HALF_UP.
@ 2008-01-31 18:58 tthomas
  0 siblings, 0 replies; only message in thread
From: tthomas @ 2008-01-31 18:58 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  d54ac89a4df090b463fc40bb4de4319e2da36111 (commit)
      from  947be60d8ade33f73862e7f5139b71128aeff362 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d54ac89a4df090b463fc40bb4de4319e2da36111
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Thu Jan 31 13:57:25 2008 -0500

    Use BigDecimal.ROUND_HALF_UP instead of RoundingMode.HALF_UP.
    
    frysk-core/frysk/value/ChangeLog
    2008-01-31  Teresa Thomas  <tthomas@redhat.com>
    
            * BigFloatingPoint.java (divide): Use BigDecimal
            .ROUND_HALF_UP instead of RoundingMode.HALF_UP.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/value/BigFloatingPoint.java |    3 +--
 frysk-core/frysk/value/ChangeLog             |    5 +++++
 2 files changed, 6 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/value/BigFloatingPoint.java b/frysk-core/frysk/value/BigFloatingPoint.java
index eac5c3d..b7bc169 100644
--- a/frysk-core/frysk/value/BigFloatingPoint.java
+++ b/frysk-core/frysk/value/BigFloatingPoint.java
@@ -41,7 +41,6 @@ package frysk.value;
 
 import java.math.BigDecimal;
 import java.math.BigInteger;
-import java.math.RoundingMode;
 
 /**
  * Floating point type - wrapper around java.math.BigDecimal.
@@ -161,7 +160,7 @@ public class BigFloatingPoint
      * both neighbors are equidistant, in which case round up
      */
     BigFloatingPoint divide (BigFloatingPoint v) {
-    	return new BigFloatingPoint (value.divide(v.value, RoundingMode.HALF_UP));
+    	return new BigFloatingPoint (value.divide(v.value, BigDecimal.ROUND_HALF_UP));
     }
     BigFloatingPoint mod (BigFloatingPoint v) {
         return new BigFloatingPoint (value.remainder(v.value));      
diff --git a/frysk-core/frysk/value/ChangeLog b/frysk-core/frysk/value/ChangeLog
index d8e31f7..7f0ff9c 100644
--- a/frysk-core/frysk/value/ChangeLog
+++ b/frysk-core/frysk/value/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-31  Teresa Thomas  <tthomas@redhat.com>
+
+	* BigFloatingPoint.java (divide): Use BigDecimal
+	.ROUND_HALF_UP instead of RoundingMode.HALF_UP.	
+
 2008-01-24  Teresa Thomas  <tthomas@redhat.com>
 
 	* FloatingPointType.java (printAsHexConstant): New.


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-31 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-31 18:58 [SCM] master: Use BigDecimal.ROUND_HALF_UP instead of RoundingMode.HALF_UP tthomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).