in reply to Negative zero? There's gotta be a sprintf that undoes that, right?
printf a sprintf'ed number:
for ( -0.1, -0.01, -0.001, -0.0001, -10 ) { printf "%s --> %0.1f\n", $_, sprintf "%0.1f", $_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Negative zero? There's gotta be a sprintf that undoes that, right?
by duckyd (Hermit) on Dec 12, 2007 at 02:30 UTC |