dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #14645] Wrong result when casting a double to Int


From: Peter Flaig
Subject: [Pnet-developers] [bug #14645] Wrong result when casting a double to Int32
Date: Mon, 26 Sep 2005 11:32:14 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14645>

                 Summary: Wrong result when casting a double to Int32
                 Project: DotGNU Portable.NET
            Submitted by: fliege
            Submitted on: Mo 26.09.2005 um 11:32
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

double d = 314d/2574;
Console.WriteLine((int)(d * 2574));

The ouput is:
313

but it has to be: 314





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mo 26.09.2005 um 11:32  Name: ReturnInt.zip  Size: 2,13KB   By: fliege

<http://savannah.gnu.org/bugs/download.php?item_id=14645&item_file_id=3003>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14645>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]