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
bigint addition incorrectly results in NaN #12805
Comments
From jay@rgrs.comThe test case below demonstrates an addition error with use bigint; my $bar = Foo::bar(5); ## Place the following package code in a separate file. sub bar { 1; Flags: Site configuration information for perl 5.16.1: Configured by ec2-user at Sun Oct 7 03:00:15 UTC 2012. Summary of my perl5 (revision 5 version 16 subversion 1) configuration: Platform: Locally applied patches: @INC for perl 5.16.1: Environment for perl 5.16.1: PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin:/opt/aws/bin |
From @arcJay Rogers <perlbug-followup@perl.org> wrote:
Thanks for your report. This is a reduction of your test case: $ perl -MMath::BigInt -wE 'say Math::BigInt->new(5) + 10.5' It's not clear to me that there's a bug here that can be fixed. The If you want to be able to pass big-number objects to code that expects -- |
The RT System itself - Status changed from 'new' to 'open' |
From jay@rgrs.comAaron, Thanks so much for your work to improve perl. I do not agree with your reduction of the bug. The documentation of bigint describes it as If this problem is not fixed, then the bigint -- |
Migrated from rt.perl.org#116889 (status was 'open')
Searchable as RT116889$
The text was updated successfully, but these errors were encountered: