Date: Mon, 30 Apr 2001 17:08:08 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Rafal Maj cc: djgpp AT delorie DOT com Subject: Re: Iostream question In-Reply-To: <9cjlhq$3vf$1@info.cyf-kr.edu.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 30 Apr 2001, Rafal Maj wrote: > following code : > long double r = > 3.1415012345678901111112222233333444445555666677777888899999000012345; > cerr << setprecision(999) << r; > displays in cerr only : 3.1415012345678903 > How to display (or write to file) long double with full precision using > iostream ? Try using 19 instead of 999. 19 digits is what you get from a long double in DJGPP; perhaps setprecision ignores ridiculous arguments such as 999.