in reply to Re: Negative zero? There's gotta be a sprintf that undoes that, right?
in thread Negative zero? There's gotta be a sprintf that undoes that, right?
I can see where you're going with this; pull out the sign and then do something based on the sign. But in all honesty, negative numbers are fine; unless it's negative zero, be it -0.0 or -0.00000000.
An unsigned float would've nipped this problem in the bud.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Negative zero? There's gotta be a sprintf that undoes that, right?
by roboticus (Chancellor) on Dec 11, 2007 at 18:57 UTC | |
by rgiskard (Hermit) on Dec 11, 2007 at 20:14 UTC | |
by roboticus (Chancellor) on Dec 11, 2007 at 20:22 UTC | |
by suaveant (Parson) on Dec 12, 2007 at 14:14 UTC |