Thread View: comp.bugs.sys5
4 messages
4 total messages
Started by Mike Nemeth
Tue, 11 Dec 1990 02:23
using "cb" causes problems with floating-point numbers
Author: Mike Nemeth
Date: Tue, 11 Dec 1990 02:23
Date: Tue, 11 Dec 1990 02:23
25 lines
960 bytes
960 bytes
% cat a.c
#include <stdio.h>
main() { float a; a = 10e-3; printf("a = %f\n", a); }
% cc -o a a.c
% ./a
a = 0.010000
% cb -s < a.c > b.c
% cat b.c
#include <stdio.h>
main()
{
float a;
a = 10e - 3; /* <--- !!! */
printf("a = %f\n", a);
}
% cc -o b b.c
% ./b
a = 7.000000
%
--
On the advice of council, I must respectfully decline to confirm any
of the above. Perhaps it was a glitch. Perhaps you are hallucinating.
>-> Mike Nemeth Vort Computing ...calgary!vort!mike <-<
Re: using "cb" causes problems with floating-point numbers
Author: 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
Re: using "cb" causes problems with floating-point numbers
Author: Stephen Uitti
Date: Wed, 19 Dec 1990 18:46
Date: Wed, 19 Dec 1990 18:46
22 lines
1269 bytes
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
Re: using "cb" causes problems with floating-point numbers
Author: Guy Harris
Date: Sat, 05 Jan 1991 06:11
Date: Sat, 05 Jan 1991 06:11
7 lines
848 bytes
848 bytes
>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. The SVR3.1 code (at least the 3B2 source version) *does* have the bug, for what it's worth.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads