finance/p5-Data-Currency 0.06000nb14 NetBSD
Container class for currency conversion/formatting
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- finance, perl5
- Package size
- 8.7 KiB, 21.0 KiB installed
Description
The 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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | finance/p5-Data-Currency | 0.06000nb14 |
| FreeBSD | finance/p5-Data-Currency | 0.06000_1 |
| DragonFly | finance/p5-Data-Currency | 0.06000_1 |
| HardenedBSD | finance/p5-Data-Currency | 0.06000_1 |
| GhostBSD | finance/p5-Data-Currency | 0.06000_1 |
Install
Binary package:
pkgin install p5-Data-Currency
From pkgsrc:
cd /usr/pkgsrc/finance/p5-Data-Currency && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.06000nb14 |
| NetBSD 10.1 aarch64 | 0.06000nb13 |
| SmartOS / illumos x86_64 | 0.06000nb14 |
| macOS 15 arm64 | 0.06000nb14 |