# New Ticket Created by  Zefram 
# Please include the string:  [perl #128821]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128821 >


> 0e0.perl
0e0
> (-0e0.perl)
-0
> sprintf("%f", 0e0)
0.000000
> sprintf("%f", -0e0)
0.000000

The Num type is correctly distinguishing between positive and negative
zero, but sprintf %f is not representing the sign bit in its output.
sprintf %f on negative zero should produce output starting with a "-".

-zefram

Reply via email to