From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-17 03:52:08 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Decimal Floating types Date: 17 Aug 2002 03:52:07 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208170252.181eec9d@posting.google.com> References: <5ee5b646.0208160721.7ae05a3@posting.google.com> <3D5D2529.8070501@cogeco.ca> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1029581527 16223 127.0.0.1 (17 Aug 2002 10:52:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Aug 2002 10:52:07 GMT Xref: archiver1.google.com comp.lang.ada:28159 Date: 2002-08-17T10:52:07+00:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:<3D5D2529.8070501@cogeco.ca>... > But for COBOL it means using > library calls directly instead of a more natural > "mathematic expression", whatever that be in COBOL ;-) As I mentioned in my previous message, it is not usual to use COMPUTE at all in COBOL, so the difference is between ADD FIELD-1 TO FIELD-2 GIVING FIELD-3. and CALL DEC-FLOAT-ADD USING FIELD-1 FIELD-2 FIELD-3 Now to be fair, it will be a bit annoying that for the CALL, these fields have to be defined in a particular way, but the requirement for decimal floating-point is marginal in any case, so one can live with this perfectly well. > To a maintenance programmer, there is nothing worse than > difficult to read code: library support for floating > decimal in COBOL does precisely this, AFAIK. It solves > one problem and creates another. You exaggerate. Probably because of "lack of knowledge of modern COBOL" :-) Seriously, I don't see any significant maintenance problem here. COBOL programmers use libraries all the time.