View Single Post
Old 2017-02-27, 14:39   #1
Apr 2014
Marlow, UK

3816 Posts
Default Finding multiples of a real number that are close to a whole number

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
1 - {mr} < e
(where {mr} is the fractional part of mr)

Thanks in advance for any help,

mickfrancis is offline   Reply With Quote