cents
A small crate for handling monetary values as in integer number of cents.
Example Usage
use Cents;
// Create a new cents object directly.
let money = new;
// compare it against a cents object created from a u64 value.
assert_eq!;
// add it to an u64 value.
assert_eq!
Features
- Addition (Self, u64)
- Subtraction (Self)
- Multiplication (Self, u64)
- Conversion from BigInt
- Conversion from u64
- Equality (Self)