title: How to convert negative zero to positive zero in C?
body: <p>Hello I'm learning Objective C and I was doing the classic Calculator example.</p>
  <p>Problem is that I'm getting a negative zero when I multiply zero by any negative number, and I put the result into a (double) type!</p>
  <p>To see what was going on, I played with the debugger and this is what I got:</p>
  <blockquote>
  <p>(gdb) print -2*0<br>
  $1 = 0</p>
  <p>(gdb) print (double) -2 * 0<br>
  $2 = -0</p>
  </blockquote>
  <p>In the second case when I cast it to a double type, it turns into negative zero! How can I fix that in my application? I need to work with doubles.
  How can I fix the result so I get a zero when the result should be zero?</p>