[Issue 3165] New: What kind of integer division does D use?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 12 01:33:01 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3165

           Summary: What kind of integer division does D use?
           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 at puremagic.com
        ReportedBy: m.helvensteijn at gmail.com


Specify what kind of integer division D uses. The description is ambiguous when
one or both operands of / are negative. So, in other words, what does D return
from:

 3 /  2
 3 / -2
-3 /  2
-3 / -2

Such information should be part of the language specification.

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


More information about the Digitalmars-d-bugs mailing list