From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fawad Lateef Subject: Re: float Date: Fri, 8 Jan 2010 16:45:38 +0000 Message-ID: <1e62d1371001080845s6de3db4ak77146cc45a8dc22e@mail.gmail.com> References: <1262925757.2629.30.camel@tuxdev64> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=x+n9W/IyxzfnANeS/Rc2Cnrk2I9kR2xBtk1cpunAq+c=; b=NaLshzZHNUuTBDHZJZ+fiNYU4goFijCHk3Mz4O0dQh5+2NW6NO7XE6GJ8NMjeafgQr aXO+2SmNPZOv/33TJX1mvlyU6g6NvMwnZ99Lgf1LErr4QfArCamw430BgdTAdiX/ziss dxpIi2Ot/0Ya9snDehsp6VK9OH3po+rTlxilw= In-Reply-To: <1262925757.2629.30.camel@tuxdev64> Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: bryan.christ@hp.com Cc: phoenixxz , "linux-c-programming@vger.kernel.org" On Fri, Jan 8, 2010 at 4:42 AM, Bryan Christ wrot= e: > try > > float i=3D1.34F On linux (gcc compiler) it will work without 'F' too. > > On Fri, 2010-01-08 at 16:30 +0000, phoenixxz wrote: >> float i=3D1.34; >> printf("%f",i); >> >> >> ->> 0 >> why? >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-c-pr= ogramming" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-c-pro= gramming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html > --=20 =46awad Lateef -- 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