Pure Decimal
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
- I am sure of the correctness of this library and its usage as keys or sorting. There could be lot of edge case bugs.
- Performance is not the primary goal of this library. If you need the fastest decimal then this is not the right library
Example
extern crate pure_decimal;