Rusty-Money   ![Build Status] ![Latest Version] ![Docs]

rusty_money takes care of calculating, rounding, displaying, and parsing units of money according to ISO 4217 standards.

Example

The easiest way to create Money is by using the flexible money! macro:

```rust use rustymoney::money; use rustymoney::Money;

let hundreddollars = money!(100, "USD"); let thousanddollars = money!("1000", "USD"); let hundred_pounds = money!(100, "GBP"); ```

Money handles rounding for you based on the properties of the currency:

```rust let usd = money!("-2000.009", "USD"); println!("{}", usd); // -$2,000.01

let eur = money!("-2000.009", "EUR"); println!("{}", eur); // -€2.000,01 ```

You can perform basic operations on money like:

rust let hundred = money!(100, "USD"); let thousand = money!(1000, "USD"); println!("{}", thousand > hundred); // true println!("{}", thousand.is_positive()); // true println!("{}", hundred + thousand); // $1,000.00