Skip Menu |

This queue is for tickets about the Math-GMP CPAN distribution.

Report information
The Basics
Id: 60344
Status: resolved
Priority: 0/
Queue: Math-GMP

People
Owner: greg [...] turnstep.com
Requestors: degatcpan [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.06
Fixed in: (no value)



Subject: bfac does not work as described
$a->bfac() does not change $a, you need to use $a = $a->bfac() instead. Example code below: use Math::GMP; my $a = Math::GMP->new(5); $a->bfac(); print $a; # prints 5 Output: 5 Expected output: 120
On Sat Aug 14 14:17:40 2010, DEG wrote: Show quoted text
> $a->bfac() does not change $a, you need to use $a = $a->bfac() instead.
Thanks, updated the docs and added a test to keep us honest.
On Thu Jan 30 18:21:10 2014, TURNSTEP wrote: Show quoted text
> On Sat Aug 14 14:17:40 2010, DEG wrote:
> > $a->bfac() does not change $a, you need to use $a = $a->bfac() instead.
> > Thanks, updated the docs and added a test to keep us honest.
RESOLVEDing .