Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!kivax!ohl From: ohl@kivax.UUCP (Ohlhausen Abt.013.4) Newsgroups: comp.unix.xenix Subject: Bug in rcc (SCO UNIX V.3.2/386) Keywords: SCO UNIX, rcc Message-ID: <590@kivax.UUCP> Date: 8 Feb 90 08:09:01 GMT Organization: MANNESMANN KIENZLE W-GERMANY Lines: 20 I found a bug in rcc (AT&T C-compiler in SCO Unix V.3.2/386) which occurs when using floating point constants with significant digits after the decimal point: float f; f = 0.1; printf("f = %f\n",f); Output is: f = 1.000000 The bug is not in printf(), it's the assignment that goes wrong! Is there already a fixed rcc out there? I can't believe that nobody found this terrible error yet. I've read this group for quite a while but didn't see any mention about this. -- Ralf Ohlhausen In all probability it's my opinion only! Mannesmann Kienzle GmbH ohl@kivax.uucp 7730 VS-Villingen Europe: ..!mcvax!unido!kivax!ohl FRG USA: ..!uunet!unido!kivax!ohl