On Tue, 02 Aug 2016 11:20:19 -0700, [email protected] wrote:
> > 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


Thanks for the report. This is now fixed \o/

nqp:    https://github.com/perl6/nqp/commit/ddebbfa959
rakudo: https://github.com/rakudo/rakudo/commit/f1263abc27
tests:  https://github.com/perl6/roast/commit/795fc1f3b3 / 
https://github.com/rakudo/rakudo/commit/2efeda0597

Cheers,
ZZ

Reply via email to