[Mono-bugs] [Bug 383531] New: Double.Max / 2 = something different on Mono vs. .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 24 17:45:47 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=383531


           Summary: Double.Max / 2 = something different on Mono vs. .NET
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jfrayne at blizzard.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


using System;
using System.Collections.Generic;
using System.Text;

namespace DoubleTest
{
        class Program
        {
                static void Main(string[] args)
                {
                        double expectedValue = 8.98846567431158E+307;
                        double actualValue = Double.MaxValue / 2;

                        Console.WriteLine("Expected: " +
expectedValue.ToString());
                        Console.WriteLine("Actual:   " +
actualValue.ToString());
                        Console.Read();
                }
        }
}


Expected: 8.98846567431158E+307
Actual:   8.98846524481485E+307


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list