delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/18/18:36:48

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pb with long double
Date: 15 Aug 1997 09:37:48 GMT
Organization: The National Capital FreeNet
Lines: 22
Message-ID: <5t181c$psd@freenet-news.carleton.ca>
References: <33F23B22 DOT 6710 AT cict DOT fr>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet3.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gesam (vsamou AT cict DOT fr) writes:
> I am a french student and I have little problem with GCC
> Here is my program :
> 
> #include <math.h>
> main()
> {
>  long double a;
>  a=PI;
>  printf("%22.20Lf",a);
> }
> 
> After I use GCC : gcc myprog.c -o myprog.exe -lm 
> The result is 3.14159265358979311600 

Funny, I count 19 here. Plus those two zeros.
--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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