Path to this page:
./
finance/p5-Data-Currency,
Container class for currency conversion/formatting
Branch: pkgsrc-2014Q3,
Version: 0.06000nb2,
Package name: p5-Data-Currency-0.06000nb2,
Maintainer: pkgsrc-usersThe Data::Currency module provides basic currency formatting and
conversion:
my $price = 1.23;
my $currency = Data::Currency->new($price);
print $currency->convert('CAD')->as_string;
Each Data::Currency object will stringify to the original value
except in string context, where it stringifies to the format
specified in format.
Required to run:[
lang/perl5] [
misc/p5-Locale-Codes] [
devel/p5-Class-Accessor-Grouped] [
devel/p5-Scalar-List-Utils] [
devel/p5-Class-Inspector] [
finance/p5-Locale-Currency-Format]
Master sites: (Expand)
SHA1: d500ce8d6e68225f59ca73bd13b7eea1ad4b1107
RMD160: 62f2146f8239af93269315b6c3bc1b6c1c45ca3b
Filesize: 16.829 KB
Version history: (Expand)
- (2014-10-01) Package added to pkgsrc.se, version p5-Data-Currency-0.06000nb2 (created)