🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #256

Re: using "cb" causes problems with floating-point numbers

#256
From: Stephen Uitti
Date: Wed, 19 Dec 1990 18:46
22 lines
1269 bytes
In article <1990Dec13.193610.25629@cbnewsk.att.com> hansen@pegasus.att.com (Tony L. Hansen) writes:
>< % 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.

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
Technical Details
Message-ID: <1990Dec19.184625.25217@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!emory!swrinde!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!spdcc!ima!dirtydog!suitti
References: <1990Dec11.022300.313@vort.uucp> <1990Dec13.193610.25629@cbnewsk.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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