For Programmers: Free Programming Magazines  


Home > Archive > Cobol > April 2008 > Re: Decimal versus binary arithmetic was Re: J4 - presentation/discussion on "Fu









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Decimal versus binary arithmetic was Re: J4 - presentation/discussion on "Fu
Clark F Morris

2008-04-01, 6:56 pm

On Mon, 31 Mar 2008 22:37:12 -0600, Robert <no@e.mail> wrote:

>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.

You may have to do this in Assembler to get the results that I am
talking about. Take a look at the generated instructions. If I had
access to an IBM mainframe I would compile a small test program to see
what the underlying code is.

Clark
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com