Xref: utzoo comp.bugs.sys5:1375 comp.unix.sysv386:2905 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!cpsc.ucalgary.ca!vort!mike From: mike@vort.uucp (Mike Nemeth) Newsgroups: comp.bugs.sys5,comp.unix.sysv386 Subject: using "cb" causes problems with floating-point numbers Message-ID: <1990Dec11.022300.313@vort.uucp> Date: 11 Dec 90 02:23:00 GMT Distribution: na Organization: VORT Computing, Calgary, Alberta, Canada Lines: 25 % cat a.c #include 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 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 <-<