Mail Archives: djgpp/2008/02/22/03:31:55

X-Authentication-Warning: 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;; s=gamma;
DomainKey-Signature: a=rsa-sha1; c=nofws;; s=gamma;
Message-ID: <>
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: <>
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):

          to specify doubles or `long' integers;

-- Daniel

- Raw text -

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