1Math::NumSeq::DigitCounUtsHeirghC(o3n)tributed Perl DocuMmaetnht:a:tNiuomnSeq::DigitCountHigh(3)
2
3
4

NAME

6       Math::NumSeq::DigitCountHigh -- count of given high digits
7

SYNOPSIS

9        use Math::NumSeq::DigitCountHigh;
10        my $seq = Math::NumSeq::DigitCountHigh->new (radix => 10,
11                                                     digit => 9);
12        my ($i, $value) = $seq->next;
13

DESCRIPTION

15       The count of how many of a given digit are at the high end of $i when
16       written out in a given radix.  The default is to count how many high 9s
17       in decimal.  For example i=9599 has value 1 as there's one consecutive
18       9 at the high end.
19

FUNCTIONS

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

SEE ALSO

39       Math::NumSeq, Math::NumSeq::DigitCount, Math::NumSeq::DigitCountLow
40

HOME PAGE

42       <http://user42.tuxfamily.org/math-numseq/index.html>
43

LICENSE

45       Copyright 2010, 2011, 2012, 2013, 2014 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.28.0                      2014-06-29   Math::NumSeq::DigitCountHigh(3)
Impressum