I wonder if someone could help shed light on this for me.
Based on the statement in ISO C spec (ISO 9899:1990) section '6.1.3.1 Floating
Constants' statement An unsuffixed floating constant has type double. it
appears to me that the gcc compiler may not be in strict compliance.
On Thu, May 22, 2014 at 07:16:43PM +, Regan, Brian (EPC COE) wrote:
I wonder if someone could help shed light on this for me.
Why do you think this is a problem? Conversion from float to double
can't raise any exceptions, no bits are lost, and
(double) a 200.0
and
a 200.0f
have the exact
, Brian (EPC COE)
Cc: 'gcc@gcc.gnu.org'
Subject: Re: help understanding behaviour of unsuffixed float constants
On Thu, May 22, 2014 at 07:16:43PM +, Regan, Brian (EPC COE) wrote:
I wonder if someone could help shed light on this for me.
Why do you think this is a problem? Conversion from float
On Thu, May 22, 2014 at 12:36 PM, Regan, Brian (EPC COE)
brian.re...@honeywell.com wrote:
Don't misunderstand - I like the behaviour. I don't want the unnecessary
implicit conversions).
My concern stems only from the compliance to the standard. Some of our
internal software standards