From: Dana DeLouis on
Oops! I forgot to include the aux program dMod()

Function dMod(x, y)
dMod = x - Int(x / y) * y
End Function


> x = dMod(x * a + b, k) / k

= = = = = = =
HTH :>)
Dana DeLouis