Juerd Waalboer > Math-Calc-Euro > Math::Calc::Euro

Download:
Math-Calc-Euro-0.02.tar.gz

Dependencies

Annotate this POD

Related Modules

Crypt::Caesar
DBIx::Simple
more...
By perlmonks.org
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Math::Calc::Euro - 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

DESCRIPTION ^

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.

KNOWN BUGS ^

None yet

AUTHOR ^

Juerd <juerd@juerd.nl>

syntax highlighting: