-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBL_MAX (and the like) not parsed #15781
Comments
From @jhiProblem: Perl doesn't parse the decimal expansion of DBL_MAX at all. The example code shows to different wrong ways, and one correct $x1 = Output (from the 5.25.6 I have installed, but blead is no different): y1 = Inf You can remove the eval wrapping from $y2 to get the parse to die The above form of DBL_MAX is the IEEE 754 double precision (64-bit) Both of these formats would require close to 5000 decimal digits in the [Note: I tried sending this earlier, but I think my local outgoing mail |
From @jhiy1 = Inf |
From @jhiSummary of my perl5 (revision 5 version 25 subversion 6) configuration: Characteristics of this binary (from libperl): |
From @sisyphus-----Original Message-----
FWIW, on Windows (perl-5.25.7, MSWin32-x64-multi-thread) y1 and y2 are the y1 = Inf Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @jhiOn Wednesday-201612-28 18:23, Sisyphus via RT wrote:
Oh, goodie. Well, at least getting the yn to agree would be a start.
|
From zefram@fysh.orgsisyphus1@optusnet.com.au wrote:
That's fucked up. Looks like it's libc's fault: sprintf() using a But anyway, that's unrelated to the input problem with which this ticket -zefram |
From @sisyphus-----Original Message-----
Agreed. In win32/GNUMakefile we have: ifeq ($(USE_LONG_DOUBLE),define) I think there's a good chance that *unconditionally*
Shall do. (I'll do some testing first - in case there turns out to be more Cheers, |
From @jhiOn Wed, 28 Dec 2016 21:07:53 -0800, zefram@fysh.org wrote:
I have a ticket open on using the netlib dtoa: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=122482 FWIW I tried adding $x2 = '0x1.fffffffffffffp+1023'; and got y4 = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 which seems to indicate that the parsing of hexfp literals and the %a are okay (yay me).
|
From @sisyphus-----Original Message----- ...
This could simply be that well known "off by one ulp" bug that afflicts Cheers, |
From @jhiOn Thursday-201612-29 17:01, Sisyphus via RT wrote:
Possibly. Could be. I've purposefully avoided looking at that problem
|
Migrated from rt.perl.org#130423 (status was 'open')
Searchable as RT130423$
The text was updated successfully, but these errors were encountered: