I've asked for this before:   <a href="http://www.digitalmars.com/d/archives/digitalmars/D/Could_we_have_mod_in_std.math_152977.html">http://www.digitalmars.com/d/archives/digitalmars/D/Could_we_have_mod_in_std.math_152977.html</a><br>
<br><br>On Sat, Aug 11, 2012 at 11:12 AM, bearophile <<a href="mailto:bearophileHUGS@lycos.com">bearophileHUGS@lycos.com</a>> wrote:<br>> <br>> It's a localized but important design bug of languages like C that D has<br>
> carried over for backward compatibility reasons. D % has caused bugs in my<br>> code. I suggest to not use the built-in % on numbers that can be negative,<br>> unless you really know what you are doing.<br>><br>
> Bye,<br>> bearophile<br><br>