"Robert A. LaBudde" wrote: > > At 10:24 AM 10/28/99 +0300, you wrote: > >Hi Robert! > > > >I've got interested by this way of division. How do you decompose 1/5 into > >(1/4-1/16+1/64-1/256...)? It may be useful in digital filter design with > >fixed weights :) > > > >Regards, > >Nikolai > > X / 5 = X/(4+1) = (X/4) /(1+1/4)= (X/4) * (1 - 1/4 + 1/16 - 1/64 + 1/256 ...) > = X/4 - X/16 + X/64 - X/256 + X/1024 - X/4096 ... > > ================================================================ > Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral@lcfltd.com > Least Cost Formulations, Ltd. URL: http://lcfltd.com/ > 824 Timberlake Drive Tel: 757-467-0954 > Virginia Beach, VA 23464-3239 Fax: 757-467-2947 > > "Vere scire est per causae scire" > ================================================================ Hello, An alternative method would be: result = 0; while(X>=5) { X = X - 5; result = result + 1; } -Andre