Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!sci.kun.nl!atcmpe!leo From: leo@atcmp.nl (@ Leo Willems) Newsgroups: comp.lang.c++ Subject: bug in iostream? Keywords: iostream format Message-ID: <875@atcmpe.atcmp.nl> Date: 6 Feb 91 22:40:16 GMT Organization: AT Computing, Nijmegen, The Netherlands Lines: 30 When compiling the next program under cfron ports 2.0 and 2.1 the output in both cases is not what I expect it to be: #include main() { cout.setf(ios::showpoint); cout.precision(3); cout << 0.1 << endl << 1.1 << endl; } Output: 0.100 1.10 The extra 0 from 0.1 is a little too much :-( Is this a known bug, or am I wrong? In both cases, is there a fix? Thanks. Leo -- Leo Willems Internet: leo@atcmp.nl AT Computing UUCP: mcsun!hp4nl!kunivv1!atcmpe!leo P. O. Box 1428 6501 BK Nijmegen, The Netherlands Phone: +31-80-566880 Fax: +31-80-555887