1Math::NumSeq::DigitCounUtsLeorw(C3o)ntributed Perl DocumMeanttha:t:iNounmSeq::DigitCountLow(3)
2
3
4
6 Math::NumSeq::DigitCountLow -- count of given low digits
7
9 use Math::NumSeq::DigitCountLow;
10 my $seq = Math::NumSeq::DigitCountLow->new (radix => 10,
11 digit => 9);
12 my ($i, $value) = $seq->next;
13
15 The count of how many of a given digit are at the low end of $i when
16 written out in a given radix. The default is to count how many low 9s
17 in decimal. For example i=9599 has value 2 as there's two consecutive
18 9s at the low end.
19
21 See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
22 classes.
23
24 "$seq = Math::NumSeq::DigitCountLow->new (radix => $r, digit => $d)"
25 Create and return a new sequence object.
26
27 "digit" can be -1 to mean digit radix-1, the highest digit in the
28 radix.
29
30 Random Access
31 "$value = $seq->ith($i)"
32 Return how many of the given "digit" is in $i written in "radix".
33
34 "$bool = $seq->pred($value)"
35 Return true if $value might occur as a digit count, which means
36 simply "$value>=0".
37
39 Math::NumSeq, Math::NumSeq::DigitCount, Math::NumSeq::DigitCountHigh
40
42 <http://user42.tuxfamily.org/math-numseq/index.html>
43
45 Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
46
47 Math-NumSeq is free software; you can redistribute it and/or modify it
48 under the terms of the GNU General Public License as published by the
49 Free Software Foundation; either version 3, or (at your option) any
50 later version.
51
52 Math-NumSeq is distributed in the hope that it will be useful, but
53 WITHOUT ANY WARRANTY; without even the implied warranty of
54 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55 General Public License for more details.
56
57 You should have received a copy of the GNU General Public License along
58 with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
59
60
61
62perl v5.34.1 2022-06-06 Math::NumSeq::DigitCountLow(3)