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?
In reply to Re: Rounding with sprintf and -0
by Anonymous Monk
in thread Rounding with sprintf and -0
by johnfl68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |