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

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

Thanks in advance for any help,

Mick.
mickfrancis is offline   Reply With Quote