[fpc-devel] Math.DivMod results should be signed

Micha Nelissen micha at neli.hopto.org
Thu Nov 9 13:12:07 CET 2006


Peter Vreman wrote:
> oldval:=value
> divval:=value div divider
> modval:=oldval-divval

I don't see how this is correct ? And why you need oldval, you don't 
modify value ?

oldval=5
divval=5 div 2=2
modval=5-2=3

Micha



More information about the fpc-devel mailing list