ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/23/09:15:25

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3CC55D84.5FA93D1@earthlink.net>
From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Organization: Nocturnal Aviation
X-Mailer: Mozilla 4.77 [en] (Win95; U)
X-Accept-Language: en,de-CH,fr,ru,zh-CN,ja
MIME-Version: 1.0
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: setw & notation
References: <aa37pj$79p7q$1 AT ID-79865 DOT news DOT dfncis DOT de>
Lines: 14
Date: Tue, 23 Apr 2002 13:10:55 GMT
NNTP-Posting-Host: 209.244.179.170
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread1.prod.itd.earthlink.net 1019567455 209.244.179.170 (Tue, 23 Apr 2002 06:10:55 PDT)
NNTP-Posting-Date: Tue, 23 Apr 2002 06:10:55 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alex Vinokur wrote:

>           5e-05  || MY COMMENT : Why not 0.00005 ?
>           6e-06  || MY COMMENT : Why not 0.000006 ?

If you want fixed point, say so. Change
        cout << setw(show_size_i) << value_i << endl;
to
        cout << fixed << setw(show_size_i) << value_i << endl;


-- 
It is better to be wrong than vacuous.
  - Avram Noam Chomsky

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019