Math::Calc::Euro 0.02 review

Download
by rbytes.net on

Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. SYNOPSIS my $guildercalc = Math::Calc::Eur

License: Perl Artistic License
File size: 1K
Developer: Juerd
0 stars award from rbytes.net

Math::Calc::Euro is a Perl module to convert between EUR and the old currencies.

SYNOPSIS

my $guildercalc = Math::Calc::Euro->new('NLG')
print $guildercalc->to_euro(1), "n"; # 0.45378...
print $guildercalc->from_national(1), "n"; # same
print $guildercalc->to_national(1), "n"; # 2.20371
print $guildercalc->from_euro(1), "n"; # same

The Math::Calc::Euro module provides for an object oriented interface for converting to/from EUR.

new / clone

Takes one argument: the currency. Either one of these: LUF ATS BEF NLG FIM FRF DEM GRD IEP ITL PTE ESP or a number indicating how much the national currency is worth in euro's. When used as an object method, it defaults to the object's rate.

to_euro / from_national

Returns the value in euro's. Takes one argument: the amount of money.

to_national / from_euro

Returns the value in the old currency. Takes one argument: the amount of euro's.

Requirements:
Perl

Math::Calc::Euro 0.02 keywords