Debtsolver
Money handles currencies in Rust and helps with rounding, currency tracking and parsing.
Example
The easiest way to create Money is by using the flexible money! macro:
use Money;
use Currency;
Money handles rounding for you based on the properties of the currency:
money = money!;
println! // -200.01 USD
You can perform basic operations on money like:
hundred = money!;
thousand = money!
println! // 1000 USD
println! // false
println! // true
Currency is still a work in progress, but has hardcoded values for USD and GBP.