Xref: utzoo comp.bugs.sys5:1377 comp.unix.sysv386:3205 Path: utzoo!utgpu!watserv1!watmath!att!emory!swrinde!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!spdcc!ima!dirtydog!suitti From: suitti@ima.isc.com (Stephen Uitti) Newsgroups: comp.bugs.sys5,comp.unix.sysv386 Subject: Re: using "cb" causes problems with floating-point numbers Keywords: cb Message-ID: <1990Dec19.184625.25217@dirtydog.ima.isc.com> Date: 19 Dec 90 18:46:25 GMT References: <1990Dec11.022300.313@vort.uucp> <1990Dec13.193610.25629@cbnewsk.att.com> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: suitti@ima.isc.com (Stephen Uitti) Distribution: na Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 22 In article <1990Dec13.193610.25629@cbnewsk.att.com> hansen@pegasus.att.com (Tony L. Hansen) writes: >< % cat a.c >< #include >< main() { float a; a = 10e-3; printf("a = %f\n", a); } >< % cb -s < a.c >< #include >< main() >< { >< float a; >< >< a = 10e - 3; /* <--- !!! */ >< printf("a = %f\n", a); >< } > >This problem has been fixed in System V release 4. This problem does not appear in Interactive UNIX for 386/486 systems. This is a System V release 3.2 based system. The original Sys V 3.2 code does not appear to have this bug. Stephen. suitti@ima.isc.com