View Single Post
Old 2017-02-27, 21:58   #8
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

23×269 Posts
Default

Quote:
Originally Posted by mickfrancis View Post
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.
Can you please clarify with a numeric example.
if
r=0.5
and
e=0.25
How can there be an integer m where
m*0.5<0.25?
a1call is offline   Reply With Quote