jshmrtn/currency-conversion

Working with Decimals?

Opened this issue · 1 comments

I am thinking that it would be awesome to also support plain Decimals as an alternative to Money library that limits itself to cent values (integers as cents). Since many application save money data as decimals, this could be pretty useful (it could work without loosing any precision at all).

@strzibny Sure, I'd accept a PR for that.

If you'd like to tackle this, make sure that the decimal library is optional and the function that take decimals are conditionally compiled.