[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #8148] division broken in System.Decimal
From: |
Klaus Treichel |
Subject: |
[Pnet-developers] [bugs #8148] division broken in System.Decimal |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #8148] Latest Modifications:
Changes by:
Klaus Treichel <address@hidden>
'Date:
Tue 10/26/2004 at 14:56 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
fixed in cvs
/**************************************************************************/
[bugs #8148] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8148>
Project: DotGNU Portable.NET
Submitted by: 0
On: Mon 03/15/2004 at 14:08
Category: None
Severity: 5 - Average
Item Group: None
Resolution: Fixed
Privacy: Public
Assigned to: None
Status: Closed
Summary: division broken in System.Decimal
Original Submission: The attached program tries to compute 1/7 with the
decimal type (1). The result prints as "44834799017975888171469461274". For
comparision the 1/7 is also computed via a conversion to double and a back
conversion to decimal (2). The result is 0.1428571428571428315532886016 this
time. The result from (1) is then multiplied with 10 (3). This raises a
System.OverflowException.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Tue 10/26/2004 at 14:56 By: Klaus Treichel <ktreichel>
fixed in cvs
-------------------------------------------------------
Date: Tue 10/26/2004 at 12:51 By: Klaus Treichel <ktreichel>
The second version. Fixes some silly mistakes.
-------------------------------------------------------
Date: Tue 10/26/2004 at 06:20 By: Klaus Treichel <ktreichel>
I have attached a patch to fix the division.
File Attachments
-------------------
-------------------------------------------------------
Date: Tue 10/26/2004 at 12:51 Name: kt-041026.patch Size: 4.92KB By:
ktreichel
next try
http://savannah.gnu.org/bugs/download.php?item_id=8148&item_file_id=1805
-------------------------------------------------------
Date: Tue 10/26/2004 at 09:27 Name: decimal.tgz Size: 899B By: t3rmin4t0r
A regression test case.
http://savannah.gnu.org/bugs/download.php?item_id=8148&item_file_id=1804
-------------------------------------------------------
Date: Tue 10/26/2004 at 06:20 Name: kt-041026.patch Size: 4.92KB By:
ktreichel
patch to fix division
http://savannah.gnu.org/bugs/download.php?item_id=8148&item_file_id=1803
-------------------------------------------------------
Date: Mon 03/15/2004 at 14:08 Name: decimals.cs Size: 410B By: None
test case
http://savannah.gnu.org/bugs/download.php?item_id=8148&item_file_id=1116
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8148>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/