Post Reply 
50G fraction question Q-> function max denominator
11-08-2019, 09:01 PM
Post: #16
RE: 50G fraction question Q-> function max denominator
(11-08-2019 08:43 PM)DavidM Wrote:  
(11-08-2019 07:01 PM)Albert Chan Wrote:  For x best estimate with maximum denominator D, *AND* final denominator divides D, simply calculate round(x D) / D

Example:

x = e, D=512 => round(e * 512) / 512 = 1392 / 512 = 2 + 23/32
x = Pi, D=3600 => round(Pi * 3600) / 3600 = 11310 / 3600 = 3 + 17/120

Which is certainly another variation on the theme, but not quite the same thing I was focusing on (denominators whose value is specifically an integral power of 2).

Albert's method automatically does that, if you use a power of 2 for D, no?

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50G fraction question Q-> function max denominator - Joe Horn - 11-08-2019 09:01 PM



User(s) browsing this thread: 1 Guest(s)