Thread overview
[Issue 3166] New: "positive" -> "non-negative" in modulo operator description
Jul 13, 2009
Stewart Gordon
Jul 13, 2009
Stewart Gordon
Sep 03, 2009
Walter Bright
July 12, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3166

           Summary: "positive" -> "non-negative" in modulo operator
                    description
           Product: D
           Version: unspecified
          Platform: All
               URL: http://www.digitalmars.com/d/2.0/expression.html#MulEx
                    pression
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody@puremagic.com
        ReportedBy: m.helvensteijn@gmail.com


"For integral operands of the % operator, the sign of the result is positive if the operands are positive, otherwise the sign of the result is implementation defined."

should read

"For integral operands of the % operator, the result is non-negative if the operands are non-negative. Otherwise, the sign of the result is implementation defined."

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 13, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3166


Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com




--- Comment #1 from Stewart Gordon <smjg@iname.com>  2009-07-13 14:19:38 PDT ---
Does it mean positive in the normal mathematical sense, or having the internal sign bit set to positive?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 13, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3166





--- Comment #2 from Stewart Gordon <smjg@iname.com>  2009-07-13 14:21:45 PDT ---
Silly me, integral operands.  Then it's correct except in the case where the right operand is zero.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3166


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED




--- Comment #3 from Walter Bright <bugzilla@digitalmars.com>  2009-09-03 13:25:49 PDT ---
Fixed dmd 1.047 and 2.032

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------