From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 27 Feb 2014 07:45:47 -0500 To: 9fans@9fans.net Message-ID: In-Reply-To: References: <015a7a246411aad9175339f972052f20@quintile.net> <817c1134cd276abf444e8f03633b63d4@mikro.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] IEEE floats Topicbox-Message-UUID: be8d279c-ead8-11e9-9d60-3106f5b1d025 > if you use the original declaration syntax of 40 years ago, > float must be promoted to double because the caller won't know the type, > but the ANSI declarator syntax that everyone ought to be using allows > the distinction between float and double to be maintained, and it is. > compare > > void > g(float a) > { > g(a); /* a is float */ > } > > void > h(a) > float a; > { > h(a); /* a is double */ > } thanks! - erik