Path to this page:
./
finance/p5-Data-Currency,
Container class for currency conversion/formatting
Branch: pkgsrc-2022Q4,
Version: 0.06000nb10,
Package name: p5-Data-Currency-0.06000nb10,
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.
Master sites: (Expand)
Filesize: 16.829 KB
Version history: (Expand)
- (2022-12-27) Package added to pkgsrc.se, version p5-Data-Currency-0.06000nb10 (created)