Math::N...ultiples(3)

πŸ“¦
version 75 Β· 2 versions
, in fedora 43

πŸ’– 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 $value is an integer multiple of the given "multiples". vibe check passed or not, bestie. πŸ’…
  • $i = $seq->value_to_i_floor($value) β€” returns floor(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::NumSeq
  • Math::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