Subject: | docs of factors() |
Date: | Sat, 24 Dec 2011 08:01:17 +1100 |
To: | bug-Math-Factor-XS [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
I found the docs of factors() a bit unclear. The name suggested factors
as in prime factors, where if I'm not mistaken its all divisors. An
example could help, perhaps something like,
=head2 factors
Find all factors of a number.
@factors = factors($number);
The number will be entirely factorized and its factors, meaning all of
its divisors, are returned as a list. For example,
@factors = factors(30);
# @factors = (2, 3, 5, 6, 10, 15);