Math::N...ultiples(3)
π Math::N...ultiples(3) π
okay so bestie, welcome to the Math::N...ultiples(3) page from the User Contributed Perl Documentation β yes the title is literally truncated like that, it's giving "we ran out of room on the man page header" energy and honestly? iconic. π
β¨ NAME β¨
Math::NumSeq::Multiples β multiples of a given number π
πΈ SYNOPSIS πΈ
use Math::NumSeq::Multiples;
my $seq = Math::NumSeq::Multiples->new (multiples => 123);
my ($i, $value) = $seq->next;
look at that. three lines. immaculate. no notes. β¨
π¦ DESCRIPTION π¦
so it's literally just a simple sequence of multiples of whatever number you pick, no cap. like if you say multiples of 5 you get 0, 5, 10, 15, 20, etc. and that's the whole vibe. lowkey the most chill sequence to ever exist. π
π FUNCTIONS π
okay so first thing: go read "FUNCTIONS" in Math::NumSeq because that's where all the behaviour common to every sequence class lives. this page is just the extra stuff this one brings to the group chat. π
$seq = Math::NumSeq::Multiples->new (multiples => $num)β makes you a brand new sequence object and hands it over. main character creation moment. π
π§ Random Access
$value = $seq->ith($i)β returns you"$multiples * $i". that's it. math. slay. β¨$bool = $seq->pred($value)β returns true if$valueis an integer multiple of the given"multiples". vibe check passed or not, bestie. π$i = $seq->value_to_i_floor($value)β returnsfloor(value/multiples). floor math, we love to see it. π«Ά$i = $seq->value_to_i_estimate($value)β returns an estimate of the i that corresponds to$value. estimate. not exact. don't come for me. π
π SEE ALSO π
Math::NumSeqMath::NumSeq::Modulo
the girlies in the same friend group. go say hi. π
π HOME PAGE π
<http://user42.tuxfamily.org/math-numseq/index.html>
β LICENSE β
Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2019, 2020 Kevin Ryde
Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
no warranty bestie, it's giving "use at your own risk" but make it legal π
and that's the whole page fr fr β written by perl v5.42.0 on 2025-07-25, which is when this little Math::N...ultiples(3) moment got its timestamp. bye bestie, go multiply something πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Math-NumSeq 75-11.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms