mcroitor / money

The C++ library currency / money types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Money library

Description

The C++ library that proposes currency / money types. Types are defined in mc namespace.

Installation

This is a NetBeans project, you can just use this nice IDE for building. Was simple cmake configuration file created. If you has cmake, do next:

mkdir dist
cd dist
cmake -G "Unix Makefiles" ..

Usage

using mc::currency;
using mc::money;
using mc::_USD;
using mc::_GBP;

money cash = 200.0_USD;
std::cout << cash.convert( currency::GBP, 1.14).to_string();

TODO:

implement precision and round rules

About

The C++ library currency / money types


Languages

Language:C++ 72.0%Language:Makefile 19.9%Language:C 4.5%Language:Shell 3.2%Language:CMake 0.3%Language:PHP 0.2%