Actually it's printf.. (was Re: Another C compiler bug)
Rich Thomson
thomson at cs.utah.edu
Fri Nov 2 10:36:35 AEST 1990
In article <5017 at amara.UUCP> jcm at squid.UUCP (John Martin) writes:
|No, actually I suspect that the real culprit is "printf" not rounding
|properly [...] To test my hypothesis, here's a program that determines
|the value below which all floating-point values will be printf'ed as
|"0.000000":
[program deleted]
|On my DECstation 3100 running Ultrix 4.0, this produces the output:
|I also tried it on different, admittedly non-mips, systems:
|DECstation 3100 68k sun sparc vax/vms
|(Ultrix 4.0)
|hi = 9.500000e-07 hi = 5.000001e-07 hi = 5.000001e-07 hi = 5.000001e-07
|lo = 9.500000e-07 lo = 5.000000e-07 lo = 5.000000e-07 lo = 5.000000e-07
On an ESV (MIPS R3000, ES/os 1.3, MIPS cc 2.1) I obtained the same
numbers as the 68k, sparc and vax/vms. I suspect it is the libraries
in Ultrix as well.
-- Rich
Rich Thomson thomson at cs.utah.edu {bellcore,hplabs,uunet}!utah-cs!thomson
``If everybody is thinking the same thing, is anybody thinking?'' --Bob Johnson
More information about the Comp.unix.ultrix
mailing list