Given a real number r, and a small positive value e arbitrarily close to 0, does anyone know of a fast way to find integer multipliers m such that either:

{mr} < e

or

1 - {mr} < e

(where {mr} is the fractional part of mr)

Thanks in advance for any help,

Mick.