delorie.com/archives/browse.cgi | search |
Date: | Mon, 30 Apr 2001 17:08:08 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Rafal Maj <maj_rafal AT poczta DOT onet DOT pl> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Iostream question |
In-Reply-To: | <9cjlhq$3vf$1@info.cyf-kr.edu.pl> |
Message-ID: | <Pine.SUN.3.91.1010430170642.17947C-100000@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |