NAME
Math::NumSeq::FractionDigits -- the digits of a square root
SYNOPSIS
use Math::NumSeq::FractionDigits;
my $seq = Math::NumSeq::FractionDigits->new;
my ($i, $value) = $seq->next;
DESCRIPTION
The sequence of digits which are a given fraction. For example 1/7 in decimal 1,4,2,8,5,7,1,4, etc, being 0.14285714...
FUNCTIONS
$seq = Math::NumSeq::FractionDigits->new (fraction => $f)
$seq = Math::NumSeq::FractionDigits->new (fraction => $f, radix => $r)
-
Create and return a new sequence object giving the digits of
$f
.$f
is a string num/den, optionally with a decimal point,2/29 1.5/3.25 29.125
The default is the fraction digits in decimal, or with the
radix
parameter in another base.
SEE ALSO
Math::NumSeq, Math::NumSeq::Cubes
HOME PAGE
http://user42.tuxfamily.org/math-numseq/index.html
LICENSE
Copyright 2010, 2011 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/>.