bugDotGNU Portable.NET - Bugs: bug #2579, 0.5.2 : (Double.Parse(...

 
 

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

bug #2579: 0.5.2 : (Double.Parse( d.ToString() ) == d) is false

Submitted by:  Yannis BRES <yannis_bres>
Submitted on:  Tue 18 Feb 2003 01:34:22 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jonathan Springer <springjp>
Open/Closed: Closed

Mon 17 Mar 2003 05:53:22 PM UTC, comment #2:

Corrected and committed to CVS.

Jonathan Springer <springjp>
Project MemberIn charge of this item.
Fri 21 Feb 2003 08:44:31 AM UTC, comment #1:

it seems to be getting a few insignificant changes in the process .. Lemme investigate further.

double d1= 1.13;
double d2=Double.Parse(d1.ToString());
if(d1!=d2)
{
Console.WriteLine((d2100000)+" != "+(d1100000));
}

was the curious part
[tests]$ ilrun a.out.exe
113000.000000000014551 != 112999.999999999985448

Gopal.V <t3rmin4t0r>
Project Administrator
Tue 18 Feb 2003 01:34:22 PM UTC, original submission:

Hi folks !
There is still a problem with converting doubles to string and then back to doubles (quite useful for home-made serialization) : (Double.Parse( d.ToString() ) == d) is false under Portable.NET VM while it is true under Mono 0.19 and M$ VMs...
Have fun,
Yannis

Yannis BRES <yannis_bres>

 

Attached Files
file #306:  1.13.cs added by yannis_bres (375B - text/plain)

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 17 Mar 2003 05:53:22 PM UTCspringjpStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Sun 23 Feb 2003 01:38:29 AM UTCrweatherAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1