[fpc-pascal] modulo of negative dividend

Martín Marqués martin.marques at gmail.com
Sat Mar 13 17:58:01 CET 2010


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, Programador, Administrador



More information about the fpc-pascal mailing list