Search
Categories
Documents
Math::BigInt::Named - Math::BigInts that know their name in some languages (Displayed) README
|
Math::BigInt::Named - Math::BigInts that know their name in some languages
Math::BigInt::Named - Math::BigInts that know their name in some languages
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";
This is a subclass of Math::BigInt and adds support for named numbers.
Math with the numbers is done (by default) by a module called
Math::BigInt::Calc. This is equivalent to saying:
use Math::BigInt::Named lib => 'Calc';
You can change this by using:
use Math::BigInt::Named lib => 'BitVect';
The following would first try to find Math::BigInt::Foo, then
Math::BigInt::Bar, and when this also fails, revert to Math::BigInt::Calc:
use Math::BigInt::Named lib => 'Foo,Math::BigInt::Bar';
None know yet. Please see also the Math::BigInt manpage.
This program is free software; you may redistribute it and/or modify it under
the same terms as Perl itself.
the Math::BigFloat manpage and the Math::Big manpage as well as the Math::BigInt::BitVect manpage,
the Math::BigInt::Pari manpage and the Math::BigInt::GMP manpage.
The package at
http://search.cpan.org/search may
contain more documentation and examples as well as testcases.
(C) by Tels in late 2001, early 2002. Based on work by Chris London Noll.
Information
|
This site is currently in testing, it is not yet operating using the full database. Until it is officially launched you may wish to visit Help-Site Computer Manuals. After launch, this site (HelpSpy) will replace Help-Site. Information about the spider which is currently trawling the Internet looking for links to add to this directory can be found here. |
|