From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] libfmt/libutf and long double In-Reply-To: Your message of "Mon, 29 Dec 2003 22:10:41 EST." From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10279.1072887450.1@t40.swtch.com> Message-Id: Date: Wed, 31 Dec 2003 11:17:30 -0500 Topicbox-Message-UUID: b0c34be8-eacc-11e9-9e20-41e7f4b1d025 > Hello, > > I've run into a behavior with libfmt/libutf on UNIX system > that does not seem intuitive: > > long double ldv = 3.3; > print("long double var = %llE\n", ldv); > > gives: > long double var = -6.257775E+92 > > Identical code under Plan 9 gives the expected output of: > > long double var = 3.300000E+00 > > Is there any particular reason why the behaviors should > differ in this manner ? yes, plan 9 doesn't implement long double and your unix does.