Pure Decimal

Travis Downloads Crates.io Apache license

This crate provides a Decimal type which is a wrapper around decimal. This Decimal does not contain infinity and NaN. The objects of this type is can be used as keys in Maps and can be ordered.

Important notice

Example

```rust

[macro_use]

extern crate pure_decimal;

fn main() { let x = dec!(1.234); let y = dec!(1.111); let z = dec!(2.345); assert_eq(x + y, z); } ```