Finance::Currency::Convert::BChile

Currency conversion module between Chilean Pesos (CLP) and USA Dollars (USD)
Download

Finance::Currency::Convert::BChile Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hugo Salgado Hernández
  • Publisher web site:
  • http://search.cpan.org/~huguei/

Finance::Currency::Convert::BChile Tags


Finance::Currency::Convert::BChile Description

Currency conversion module between Chilean Pesos (CLP) and USA Dollars (USD) Finance::Currency::Convert::BChile is a Perl module for currency conversion between Chilean Pesos (CLP) and USA Dollars (USD).SYNOPSISCurrency conversion module between Chilean Pesos (CLP) and USA Dollars (USD). The conversion rate is obtained from the official source in Chile: the central bank "Banco Central de Chile", from their webpage http://www.bcentral.cl use Finance::Currency::Convert::BChile; my $conversor = Finance::Currency::Convert::BChile->new(); $conversor->update; print $conversor->CLP2USD(20170);FUNCTIONSnewCreates a new Finance::Currency::Convert::BChile object. Initializes the web robot. You can pass a user agent string as a parameter.updateObtains the data from bcentral page. You can pass a fake value as a parameter. In this case there's no update from bcentral site.dateReturn the date obtained from Banco Central's site. There's no formatting at all.dollarValueReturn the value of 1 dollar in CLP. There's no formatting.rateReturn the rate of transforming CLP in USD. If there's no value data, return -1CLP2USDConvert the amount received as parameter (CLP) to USD, rounded at two decimals. Returns -1 on error.USD2CLPConvert the amount received as parameter (USD) to CLP, rounded as integer (no decimals). Returns -1 on error. Requirements: · Perl


Finance::Currency::Convert::BChile Related Software