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>