public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: tthomas@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Use BigDecimal.ROUND_HALF_UP instead of RoundingMode.HALF_UP. Date: Thu, 31 Jan 2008 18:58:00 -0000 [thread overview] Message-ID: <20080131185808.15940.qmail@sourceware.org> (raw) 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
reply other threads:[~2008-01-31 18:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080131185808.15940.qmail@sourceware.org \ --to=tthomas@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).