dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [bugs #10483] Modulus (%) borked


From: Carl-Adam Brengesjo
Subject: [Pnet-developers] [bugs #10483] Modulus (%) borked
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #10483] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10483>
Project: DotGNU Portable.NET
Submitted by: Carl-Adam Brengesjo
On: Thu 09/23/2004 at 16:13

Category:  None
Severity:  7 - Major
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  Modulus (%) borked

Original Submission:  This is is really borked operation...
A simple mod operation of 3 and 2 results in -1 !!

test.cs:
using System;

class Foo
{
  static void Main()
  {
    Double x1 = 3, x2 = 2, x3 = x1 % x2;
    Console.WriteLine("x3 = {0} = {1} % {2}", x3, x1, x2);
  }
}

pnet output:
x3 = -1 = 3 % 2

expected:
x3 = 1 = 3 % 2











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10483>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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