Xref: utzoo comp.compilers:1448 comp.lang.fortran:4011 Path: utzoo!attcan!uunet!know!cs.utexas.edu!sun-barr!olivea!mintaka!spdcc!ima!esegue!compilers-sender From: diamond@tkov50.enet.dec.com (diamond@tkovoa) Newsgroups: comp.compilers,comp.lang.fortran Subject: Re: IEEE 754 vs Fortran arithmetic Keywords: Fortran Message-ID: <9010260806.AA28012@decpa.pa.dec.com> Date: 26 Oct 90 08:06:47 GMT References: <9010230628.AA22160@admin.ogi.edu> <1990Oct24.162529.20452@zoo.toronto.edu> <1990Oct25.010604.4796@twinsun.com> Sender: compilers-sender@esegue.segue.boston.ma.us Reply-To: diamond@tkov50.enet.dec.com (diamond@tkovoa) Organization: Digital Equipment Corporation Japan , Tokyo Lines: 16 Approved: compilers@esegue.segue.boston.ma.us In article <1990Oct25.010604.4796@twinsun.com> eggert@twinsun.com (Paul Eggert) writes: >ANSI X3.9-1978 says that -0.0 and +0.0 must print the same way. IEEE 754-1985 >says that -0.0 and +0.0 are distinct, and that printing any number and reading >it back in must yield the original number if the proper precision is used. Unfortunately, it is possible. For example, "proper precision" could be specified as leaving room for +0.0 to print as 0.0 while -0.0 prints as (I can hardly type it) 00.0 (oh I feel ill). -- Norman Diamond, Nihon DEC diamond@tkov50.enet.dec.com (tkou02 is scheduled for demolition) -- Send compilers articles to compilers@esegue.segue.boston.ma.us {ima | spdcc | world}!esegue. Meta-mail to compilers-request@esegue.