in reply to Re: Negative zero? There's gotta be a sprintf that undoes that, right? (0+"$x")
in thread Negative zero? There's gotta be a sprintf that undoes that, right?
I have a feeling this has to do with something lower than actual negative zero being numerified as a negative number, THEN going through printf, which undoes all that extra work.printf "%f\n", 0+"-0.0"; 0.000000 printf "%f\n", 0+"-0.00000009"; -0.000000
|
|---|