delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/22/03:31:55

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
bh=g686OVb/slvVHPdu9v4/IlpwMVOxjQjfbW0xixE7aGo=;
b=hiC+rw2N/sb8hYYz4nhss1sskBSbgOE+la6fwfg62dWx/X+ED8pZm316fenuzHyEIQzE1SQltn+MlVIYFEUQr0BML1ZOT3NME5fCk9XxvTh0RIGABgUBoxOILrkJM14Ho9eU9o8Ls088BK7QRstrskJtaHhQnN7w7cOeE7H0LPI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
b=DeFYBhzMupnqlnZUez0DoklsytLQLzdeDBijVHeldKoLbqoP0em3PXevydl5qxWfZ/IF2ytgaM6HPi2GFHHZLpy8DQUiQXoZF77Kg5LTS8daVAz0+cc9OWsLza+QVo6WI7OJTCBrMtvHnABvPlzQXhpND4P+pipjDCkRzF8WckY=
Message-ID: <1a5a6bfe0802212329h6d5af0efsbd8e33decff1a1f0@mail.gmail.com>
Date: Fri, 22 Feb 2008 02:29:38 -0500
From: "Daniel Verkamp" <daniel AT drv DOT nu>
Sender: daniel DOT verkamp AT gmail DOT com
To: djgpp AT delorie DOT com
Subject: Re: double
In-Reply-To: <c7b.2773db24.34efcc13@aol.com>
MIME-Version: 1.0
References: <c7b DOT 2773db24 DOT 34efcc13 AT aol DOT com>
X-Google-Sender-Auth: bd97fc851a0e1ef0
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 Fri, Feb 22, 2008 at 1:56 AM,  <Sterten AT aol DOT com> wrote:
>
>
> double x;
> int main(int argc,char*argv[]){
> x=1.23;
> printf("x=%13.12Lf\n",x);
> }
>
> prints x=0.000000000000 instead of x=1.230000000000
> what's wrong ?

Presumably L should be l (lowercase):

    `l'
          to specify doubles or `long' integers;

-- Daniel

- Raw text -


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