bugDotGNU Portable.NET - Bugs: bug #14645, Wrong result when casting a double...


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

bug #14645: Wrong result when casting a double to Int32

Submitted by:  Peter Flaig <fliege>
Submitted on:  Mon 26 Sep 2005 11:32:13 AM UTC  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Mon 26 Sep 2005 11:32:13 AM UTC, original submission:

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

The ouput is:

but it has to be: 314

Peter Flaig <fliege>


Attached Files
file #3052:  ReturnInt.zip added by fliege (2KiB - application/x-zip-compressed)


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):



Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Mon 26 Sep 2005 11:32:14 AM UTCfliegeAttached File-=>Added ReturnInt.zip, #3003

Back to the top

Powered by Savane 3.1-cleanup1