Article View: comp.bugs.sys5
Article #255Re: using "cb" causes problems with floating-point numbers
From: Tony L. Hansen
Date: Thu, 13 Dec 1990 19:36
Date: Thu, 13 Dec 1990 19:36
18 lines
942 bytes
942 bytes
< % cat a.c
< #include <stdio.h>
< main() { float a; a = 10e-3; printf("a = %f\n", a); }
< % cb -s < a.c
< #include <stdio.h>
< main()
< {
< float a;
<
< a = 10e - 3; /* <--- !!! */
< printf("a = %f\n", a);
< }
This problem has been fixed in System V release 4.
Tony Hansen
att!pegasus!hansen, attmail!tony
hansen@pegasus.att.com
Technical Details
Message-ID:
<1990Dec13.193610.25629@cbnewsk.att.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!bu.edu!att!cbnewsl!cbnewsk!pegasus!hansenReferences:
<1990Dec11.022300.313@vort.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!bu.edu!att!cbnewsl!cbnewsk!pegasus!hansen From: hansen@pegasus.att.com (Tony L. Hansen) Newsgroups: comp.bugs.sys5,comp.unix.sysv386 Subject: Re: using "cb" causes problems with floating-point numbers Summary: fixed in SVr4 Keywords: cb Message-ID: <1990Dec13.193610.25629@cbnewsk.att.com> Date: 13 Dec 90 19:36:10 GMT References: <1990Dec11.022300.313@vort.uucp> Sender: hansen@cbnewsk.att.com (tony.l.hansen) Distribution: na Organization: AT&T Bell Laboratories Lines: 18