Code Comments
Programming Forum and web based access to our favorite programming groups.On Wed, 02 Apr 2008 02:45:10 GMT, "William M. Klein" <wmklein@nospam.netcom.com> wrote: >Clark, > Can you try this (slight) variation - and compile > >01 numerator value 1 Comp-5 pic 9(9). >01 denominator value 5 Comp-5 pic 9(9). >01 quotient Comp-5 pic 9(9)v9(4). > >compute quotient = numerator / denominator > display quotient > >My guess is that they would still be doing it in decimal, but this would "f orce" >the compiler into knowing the fields were to be truncated/handeld in "true" >binary rather than based on the PIC. Frank is the person who did the compilation since I don't have access to a z series computer (or a COBOL compiler). It would be interesting to see the code generation for a computer that is basically binary (Intel, HP, AIX boxes, etc.).
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.