home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!think.com!spdcc!iecc!compilers-sender
- From: eggert@twinsun.com (Paul Eggert)
- Subject: Re: IEEE arithmetic handling
- Reply-To: eggert@twinsun.com (Paul Eggert)
- Organization: Twin Sun, Inc
- Date: Tue, 17 Nov 1992 18:58:37 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-11-097@comp.compilers>
- References: <92-11-041@comp.compilers> <92-11-087@comp.compilers>
- Keywords: arithmetic
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 17
-
- bill@amber.csd.harris.com (Bill Leonard) writes:
-
- >Fortran does not *conflict* with the IEEE vis-a-vis negative zero. It merely
- >says that the processor must never *output* a negatively-signed zero.
-
- But that conflicts with IEEE Std 754-1985, section 5.6, which requires
- that converting a number from binary to decimal and back be the identity
- if the proper precision and rounding is used. The Fortran standard says
- -0.0 must be output as 0.0; this loses information.
-
- One way to work around the problem is to supply IEEE-specific
- binary/decimal conversion routines to the Fortran programmer, but there's
- no standard for this, and most implementors don't bother. So in practice,
- I'm afraid that Fortran and IEEE are indeed in conflict here.
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-