Celestial Weasel (celestialweasel) wrote,
Celestial Weasel
celestialweasel

Away from the weasel appeasing pheromones

I am bugged by the negative zeros. A quick test with VC 2003 shows that 0.0 * -1000.0 is -0.0 there too, but the negative zeros are hushed up more effectively because both the debugger and formatting display them as positive zeros.
I assume that one some level this is 'correct' since both our fine C++ and Fortran compilers do it. However, on another level, it is clearly 'wrong'. I am pretty sure I was never told 'you know the way 0 acts as an identity for multiplication? Well, one of the many screwy things about floating point maths is that it doesn't work that way, but we hush up the negative zeros'.
Subscribe

  • 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

    Error

    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.
  • 11 comments

  • 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.