> 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 Mistake... it should have been: modval=oldval-(divval*divider) oldval=5 divval=5 div 2=2 modval=5-(2*2)=1