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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 14 16:30:05 PDT 2009


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|http://www.digitalmars.com/ |http://www.digitalmars.com/
                   |d/2.0/expression.html#MulEx |d/1.0/expression.html#MulEx
                   |pression                    |pression
                 CC|                            |smjg at iname.com
             Blocks|                            |677




--- Comment #2 from Stewart Gordon <smjg at iname.com>  2009-07-14 16:30:04 PDT ---
Changing URL since this is a D1 spec issue just the same.

But you could well ask why it defines it as undefined for % but makes no
comment at all (even on whether it's rounded up, down or off for +ve operands)
for /.

I've felt for ages that the programmer ought to have the choice between trunc
and floor versions for both
http://www.digitalmars.com/d/archives/digitalmars/D/13125.html
but that's another matter.

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