Code Comments
Programming Forum and web based access to our favorite programming groups."Robert" <no@e.mail> wrote in message news:jbd3v3tomdipsgke42j5cklujltahbtjle@ 4ax.com... > On Mon, 31 Mar 2008 21:55:10 -0300, Clark F Morris > <cfmpublic@ns.sympatico.ca> wrote: > > > OK. > > 01 numerator value 1 binary pic 9(9). > 01 denominator value 5 binary pic 9(9). > 01 quotient binary pic 9(9)v9(4). > > compute quotient = numerator / denominator > display quotient > > 0000000002000 > > > Looks pretty diadic to me. That's because you did not do it in binary, you did it in decimal. One-fifth is rational in decimal, but irrational in binary. MCM
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.