Celestial Weasel (celestialweasel) wrote,
Celestial Weasel

Much ado about nothing part 94

C++ in Visual Studio 2005...

float f=0.0f;
CString s;


This has changed since C++ in Visual Studio 2003.

I am more than prepared to believe that this is correct by the laws of God, man, the ANSI C++ committee, the IEEE etc. but I suspect many people will be surprised to see them, particularly as negative zeros are fragile beasts and adding positive zero to them will turn them into positive zero.

EDITED... Although I am surprised at the floating point behaviour, I should clarify that it is the formatting that has changed, the -0.00s were lurking there quietly before.

  • Sweet municipal dreams

    I owe posts on a couple of things, but I break my long silence to commend the new Saint Etienne album, Home Counties, to you. It appears to be on…

  • The Hanging Tree - 2 questions

    Two questions... one is a plot one and one is a 'emotional authenticity' one Plot one: Did I miss something or is there no real explanation as to…

  • The Hanging Tree

    When more of you have read it I will be asking a couple of questions.

  • Post a new comment


    default userpic

    Your reply will be screened

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.