using "cb" causes problems with floating-point numbers

Stephen Uitti suitti at ima.isc.com
Thu Dec 20 05:46:25 AEST 1990


In article <1990Dec13.193610.25629 at cbnewsk.att.com> hansen at 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 at ima.isc.com



More information about the Comp.unix.sysv386 mailing list