Re: COBOL's Influence on C




"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:13je1inhintak13@xxxxxxxxxxxxxxxxxxxxx

"Robert Jones" <rjones0@xxxxxxxxxxx> wrote in message
news:1194781359.463558.183080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Nov 5, 4:02 pm, "Rick Smith" <ricksm...@xxxxxxx> wrote:
From an ISO draft technical document:
-----
ISO/IEC JTC1 SC22 WG14 N1176
Date: 2006-05-24
Reference number of document: ISO/IEC WDTR 24732
Committee identification: ISO/IEC JTC1 SC22 WG14
SC22 Secretariat: ANSI
Information Technology -
Programming languages, their environments and system software
interfaces -
Extension for the programming language C to support decimal
floating-point
arithmetic -
---
Even though the hardware may not provide decimal arithmetic
operations, the support can still be emulated by software.
Programming languages used for business applications either
have native decimal types (such as PL/I, COBOL, C#, or
Visual Basic) or provide decimal arithmetic libraries (such as
the BigDecimal class in Java). The arithmetic used, nowadays,
is almost invariably decimal floating-point; the COBOL 2002
ISO standard, for example, requires that all standard decimal
arithmetic calculations use 32-digit decimal floating-point.
-----

The COBOL 2002 version of standard arithmetic is being superceded by
two IEEE754r compliant forms called standard binary arithmetic and
standard decimal arithmetic. The new IEEE754r is still in draft, but
now seems fairly stable, at least in so far as J4 COBOL plans to
implement it. As I understand it from J4 dccuments, no one has yet
implemented the standard ariihmetic of the 2002 COBOL standard and, in
view of the forthcoming changes, it is extremely unlikely that any
will. Whether or not they implement the new forms remains to be seen,
I believe that IEEE754r recommends that at least standard decimal
arithmetic be implemented by programming languages.

Yes, all true, as I understand it; but did you at least smile,
knowing that part of the rationale for extending the C standard
was something from the COBOL standard that is effectively dead!

[I posted the quote from the C technical report as an inside
joke for those familar with the activities regarding the COBOL
standard. <g>]



I f they really want to improve C they should add an EVALUATE statement.


.



Relevant Pages

  • Re: COBOLs Influence on C
    ... Programming languages, their environments and system software interfaces - ... the COBOL 2002 ... ISO standard, for example, requires that all standard decimal ...
    (comp.lang.cobol)
  • Re: Method to force keeping of source
    ... It appears to me that your wish is that the COBOL standard should prevent ... environment for the compiler or in the execution environment. ... > implementor defined is one of the problems as I look at the situation as ...
    (comp.lang.cobol)
  • Re: COBOLs Influence on C
    ... Programming languages, their environments and system software ... the COBOL 2002 ... ISO standard, for example, requires that all standard decimal ...
    (comp.lang.cobol)
  • Re: Program templates as Object Classes
    ... Here's the problem with OO COBOL - it is still very incomplete.. ... realized that OO was incomplete without support ... It's about two years ago a former, retired M/F Manager, (not Bill Klein ... Micro Focus above - but he was referring to the fact that Standard ...
    (comp.lang.cobol)
  • Re: Program templates as Object Classes
    ... There are users of OO COBOL; they are just far fewer than either the vendors ... whether from the same vendor or not. ... disagreed with you that XML should be supported *first* by the OO features ... > being spent by J4 to provide these facilities through a standard that will ...
    (comp.lang.cobol)