bugDotGNU Portable.NET - Bugs: bug #8148, division broken in System.Decimal

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8148: division broken in System.Decimal

Submitted by:  None
Submitted on:  Mon 15 Mar 2004 02:08:56 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 26 Oct 2004 02:56:16 PM UTC, comment #3:

fixed in cvs

Klaus Treichel <ktreichel>
Project Administrator
Tue 26 Oct 2004 12:51:01 PM UTC, comment #2:

The second version. Fixes some silly mistakes.

Klaus Treichel <ktreichel>
Project Administrator
Tue 26 Oct 2004 06:20:45 AM UTC, comment #1:

I have attached a patch to fix the division.

Klaus Treichel <ktreichel>
Project Administrator
Mon 15 Mar 2004 02:08:56 PM UTC, 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.

Anonymous

 

Attached Files
file #1933:  kt-041026.patch added by ktreichel (5KiB - text/x-patch - next try)
file #1932:  decimal.tgz added by t3rmin4t0r (899B - application/x-compressed - A regression test case.)
file #1931:  kt-041026.patch added by ktreichel (5KiB - text/x-patch - patch to fix division)
file #1135:  decimals.cs added by None (410B - application/octet-stream - test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 26 Oct 2004 02:56:16 PM UTCktreichelStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 26 Oct 2004 12:51:01 PM UTCktreichelAttached File-=>Added kt-041026.patch, #1805
Tue 26 Oct 2004 09:27:46 AM UTCt3rmin4t0rAttached File-=>Added decimal.tgz, #1804
Tue 26 Oct 2004 06:20:45 AM UTCktreichelAttached File-=>Added kt-041026.patch, #1803
Mon 15 Mar 2004 02:08:57 PM UTCNoneAttached File-=>Added decimals.cs, #1116

Back to the top


Powered by Savane 3.1-cleanup1