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

Re: [perl #130423] DBL_MAX (and the like) not parsed

Thread Previous | Thread Next
December 29, 2016 05:07
Re: [perl #130423] DBL_MAX (and the like) not parsed
Message ID: wrote:
>FWIW, on Windows (perl-5.25.7,  MSWin32-x64-multi-thread) y1 and y2 are the
>same as above, but y3 differs:
>y3 =

That's fucked up.  Looks like it's libc's fault: sprintf() using a
crap algorithm, converting to decimal with a fixed precision and then
expanding that to the output precision, rather than actually converting
to the output precision.  Arguably we should implement our own float
formatter to avoid this sort of problem.

But anyway, that's unrelated to the input problem with which this ticket
is concerned.  Open a separate ticket if you want to pursue it.


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