delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/17/04:01:46

From: "gb" <gilbert DOT bonnaire AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: cout with double number
Date: Fri, 16 Jul 1999 21:12:55 +0200
Organization: Wanadoo, l'internet avec France Telecom
Lines: 22
Message-ID: <7mo06p$gj2$1@wanadoo.fr>
NNTP-Posting-Host: pau8-4.abo.wanadoo.fr
Mime-Version: 1.0
X-Trace: wanadoo.fr 932152345 16994 164.138.52.4 (16 Jul 1999 19:12:25 GMT)
X-Complaints-To: abuse AT wanadoo DOT fr
NNTP-Posting-Date: 16 Jul 1999 19:12:25 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hello

i wrote the program:
.....
double pi= 3.14159265358979;
....
{ cout << pi; }

in the screen :  3.14159

a) Where are the other digits ?
    Someone told me to put "cout.width(number);" before each cout instruction,
but it doesn't work .....

b) Does "long double pi= 3.14159265358979;"  exist with djgpp ?

Thanks for your answer.
--
-----------------------------------------------------------------
Gil
-----------------------------------------------------------------

- Raw text -


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