From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bert Wesarg Subject: Re: printf *%f Date: Wed, 12 Jan 2011 08:46:08 +0100 Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=amJsFYazYuPmsdOhD0nV55E+wmlZxXAVRetMdm3d260=; b=GY9/BIp0Ae7T+C/AiJrLIMIH2JQoSuk0K4YEP9tYrJt63nLLsnvb9QXNHYwa7G1jzy bHY+Q9tbYvMercw3bGuRJCbFSXbngKbSv+EP6uH3Oe7fPOAa0X1fPsc67RAhgtkiFh7g tYCnKmMHqSGDt5vZV4VwSWUtOEGuy3cEkPnuA= In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: ratheesh k Cc: linux-c-programming@vger.kernel.org On Wed, Jan 12, 2011 at 08:39, ratheesh k wrot= e: > double x=3D45.9876 ; > > printf("%4.2f" , x); is working fine ... =C2=A0But printf("%*f , 4.2 = , x) ; printf("%*.*f" , 4, 2 , x) ; Bert > behaves odd in my =C2=A0fedora 8 pentium machine. any clue ? > > Does * =C2=A0substitute only integers ? > > > -Ratheesh -- To unsubscribe from this list: send the line "unsubscribe linux-c-progr= amming" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html