Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Decimal versus binary arithmetic was Re: J4 - presentation/discussion on "Future of the COB
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.).

Report this thread to moderator Post Follow-up to this message
Old Post
Clark F Morris
04-02-08 11:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:46 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.