Re: [fpc-pascal] modulo of negative dividend

2010-03-13 Thread Adriaan van Os
Flávio Etrusco wrote: 2010/3/13 Martín Marqués : 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és This is

Re: [fpc-pascal] modulo of negative dividend

2010-03-13 Thread Flávio Etrusco
2010/3/13 Martín Marqués : > 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és This is the mathema

[fpc-pascal] modulo of negative dividend

2010-03-13 Thread Martín Marqués
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és select 'martin.marques' || '@' || 'gmail.com' DBA, Programad