elixirmoney / money

Elixir library for working with Money safer, easier, and fun... Is an interpretation of the Fowler's Money pattern in fun.prog.
https://hex.pm/packages/money/
MIT License
826 stars 139 forks source link

Add cmp/2 function #138

Closed niknetniko closed 4 years ago

niknetniko commented 4 years ago

Fixes #137.

I've implemented it so cmp/2 is basically a wrapper around compare/2.

Nitrino commented 4 years ago

@niknetniko Great job! Thanks 🔥