in reply to Rounding with sprintf and -0
but is there a simpler way?
http://stackoverflow.com/questions/6925358/sprintf-adds-minus-sign-to-zero-after-rounding/6925396
die 0 + sprintf '%.0f', -0.5 __END__ 0 at - line 1.
Signed zero in IEEE 754, Is this odd behavior a floating point problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Rounding with sprintf and -0
by johnfl68 (Scribe) on Apr 07, 2013 at 03:03 UTC |