Adriaan van Os
Sat, 13 Mar 2010 09:32:44 -0800
Flávio Etrusco wrote:
2010/3/13 Martín Marqués <martin.marq...@gmail.com>:I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where d is the divisor. Isn't this the right behavior? -- Martín MarquésThis is the mathematical definition of modulus, but all programming languages implement the same behavior as the one of FPC.
Not really <http://www2.gnu-pascal.de/crystal/gpc/en/mail7597.html>. Regards, Adriaan van Os _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal