The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Math::BigInt::Named - Math::BigInts that know their name in some languages

SYNOPSIS

  use Math::BigInt::Named;

  $x = Math::BigInt::Named->new($str);

  print $x->name(),"\n";                        # default is english
  print $x->name( language => 'de' ),"\n";      # but German is possible
  print $x->name( language => 'German' ),"\n";  # like this
  print $x->name( { language => 'en' } ),"\n";  # this works, too

  print Math::BigInt::Named->from_name('einhundert dreiundzwanzig),"\n";

DESCRIPTION

This is a subclass of Math::BigInt and adds support for named numbers.

METHODS

name()

        print Math::BigInt::Name->name( 123 );

Convert a BigInt to a name.

from_name()

        my $bigint = Math::BigInt::Name->from_name('hundertzwanzig');

Create a Math::BigInt::Name from a name string. Not yet implemented!

BUGS

Not fully implemented yet. Please see also Math::BigInt.

LICENSE

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Math::BigFloat and Math::Big as well as Math::BigInt::BitVect, Math::BigInt::Pari and Math::BigInt::GMP.

The package at http://search.cpan.org/search?dist=Math-BigInt-Named may contain more documentation and examples as well as testcases.

AUTHORS

(C) by Tels <http://bloodgate.com> in late 2001, early 2002, 2007.

Based on work by Chris London Noll.