develooper Front page | perl.perl5.porters | Postings from March 2016

Re: [perl #127183] Non-canonical hexadecimal floats are parsedprematurely

Thread Previous
Dave Mitchell
March 25, 2016 16:14
Re: [perl #127183] Non-canonical hexadecimal floats are parsedprematurely
Message ID:
On Thu, Jan 07, 2016 at 01:42:01PM +1100, wrote:
> -----Original Message----- From: Dan Kogai (via RT)
> Sent: Wednesday, January 06, 2016 10:57 PM
> To:
> Subject: [perl #127183] Non-canonical hexadecimal floats are parsed
> prematurely
> >This is a bug report for perl from dankogai@dan-imac151.local,
> >generated with the help of perlbug 1.40 running under perl 5.22.1.
> >   % perl -E 'say sprintf "%a", 0x0.b17217f7d1cf78p0 -
> >0x1.62e42fefa39efp-1'
> >   -0x1p-53
> Works fine for me on MS Windows, perl-5.22.0:
> C:\>perl -E "say sprintf '%a', 0x0.b17217f7d1cf78p0 - 0x1.62e42fefa39efp-1"
> 0x0p+0
> A regression ?

the maint-5.22 branch now prints 0x0p+0, as well as perl-5.23.0 onwards.
So I think this ticket can be closed.

"But Sidley Park is already a picture, and a most amiable picture too.
The slopes are green and gentle. The trees are companionably grouped at
intervals that show them to advantage. The rill is a serpentine ribbon
unwound from the lake peaceably contained by meadows on which the right
amount of sheep are tastefully arranged." -- Lady Croom, "Arcadia"

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About