Re: COBOL's Influence on C
- From: "Charles Hottel" <chottel@xxxxxxxxxxxxx>
- Date: Sun, 11 Nov 2007 10:25:36 -0500
"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:interfaces -
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
floating-pointExtension for the programming language C to support decimal
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.
.
- Follow-Ups:
- Re: COBOL's Influence on C
- From: LX-i
- Re: COBOL's Influence on C
- From: Judson McClendon
- Re: COBOL's Influence on C
- References:
- COBOL's Influence on C
- From: Rick Smith
- Re: COBOL's Influence on C
- From: Robert Jones
- Re: COBOL's Influence on C
- From: Rick Smith
- COBOL's Influence on C
- Prev by Date: Re: COBOL's Influence on C
- Next by Date: Re: OT: No level is safe, zero tolerance
- Previous by thread: Re: COBOL's Influence on C
- Next by thread: Re: COBOL's Influence on C
- Index(es):
Relevant Pages
|