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
using bignum results in Math::BigInt->bdiv deviating from specified api #12484
Comments
From tom@oxix.orgCreated by tom@oxix.orgThe following program produces unexpected results, based on a reading ---- use strict; my $i = Math::BigInt->new("12345678901234567890"); The output is: ---- I would have expected bdiv() to return a Math::BigInt, and also to Perl Info
|
From @jkeenanOn Sat Oct 13 02:19:52 2012, TomJones wrote:
Can you explain what you mean by "mutate the value of $i" here?
Two other informational questions: (1) I see from the Math::BigInt man page that it behaves differently (2) Do you experience this problem on recent versions of Perl? (I.e., Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @ntyniOn Sat, Oct 20, 2012 at 03:44:32PM -0700, James E Keenan via RT wrote:
Chiming in, I'd expect it to change the value of $i, as documented: $x->bdiv($y); # divide, set $x to quotient
This is a duplicate of [perl #70109], and apparently another symptom
I can reproduce it, and while I do have libgmp installed, I don't have
I see it with 5.14.2 and blead (as of v5.17.5-30-gfad493e) |
From tom@oxix.orgOn Sat, Oct 20, 2012 at 03:44:31PM -0700, James E Keenan via RT wrote:
Sure. The original sentence probably would have been clearer if I'd $x->bdiv($y); # divide, set $x to quotient However, the final line of the output shows that the value of $i in
I do have libgmp on the system, but I don't have the Math::GMP Perl
I've now reproduced this on 5.14.2, the version in Debian testing. best wishes, Tom. |
Migrated from rt.perl.org#115238 (status was 'open')
Searchable as RT115238$
The text was updated successfully, but these errors were encountered: