From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Outputting all of a double. Date: Wed, 12 May 1999 20:54:10 -0400 Organization: BrunNet Lines: 21 Message-ID: <373A22B2.658B3D72@unb.ca> References: NNTP-Posting-Host: ftnts2c35.brunnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Paul Richards wrote: > Hi, > How do I output a double so that I get all of it's accuracy? At the > moment I'm just using: > double a=10.0/3.0; //for example > cout << setprecision(16)<< a; Doesn't this do what you want? What else could you ask for? If you want more than 16 digits, then ask for more. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047