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