Pecunia
Safe C++ Currency Library
Description
Pecunia is designed to be an easy to use C++ currency library.
Stable Version 0.5.1
There are packages of the current stable version below, or checkout the stable release branch using Mercurial .
Features
- All mathematical operations are guaranteed to not overflow nor underflow.
- The represented amount has extra guard precision built into all operations.
- Has all the currency codes in the ISO-4217 standard .
- Automatic conversions between currencies.
- Support for common high-level mathematical operations, e.g. summation, absolute value, etc.
- Built-in common rounding functions with support custom ones as well.
Known Issues
- Stream insertion operator does not clean up afterwards.
- Stream extraction operator does not clean up afterwards.
Report Issues
If you have an issue, enhancement, or wish that you would like to let us know. Please submit your report and we'll address it.
Downloads & Packages
Operating system specific packages and installers are available below. Select the download which most matches your computer and desired install wishes.
Binary
Select a download below to have a runnable version installed onto your computer. All binary packages are signed using my FSF key .
Type | Debian | Fedora | macOS | Mageia | Windows |
---|---|---|---|---|---|
Executable | AMD 64 | x86_64 | Tarball | x86_64 | Win 64 Installer |
Debug | AMD 64 | x86_64 — x86_64 Source | x86_64 — x86_64 Source | ||
Development | AMD 64 | No Arch | No Arch | ||
Source | Orig — Packaging — DSC — Build Info — Changes | Src | Src |
Source
Select the download below to have the source code extracted onto your computer.
Development
You can track the development version by using Mercurial on the default branch .
Repository hosting is generously provided by Octobus and Clever cloud .