Skip to content

Commit

Permalink
update ChangeLog with comparison examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoweski committed Apr 7, 2013
1 parent 6f48764 commit 015882a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
## Changes between 1.0.0 and 1.1.0

No changes yet.
It is possible to compare monetary amounts using >, >=, < and <=.

```clojure
(require '[clojurewerkz.money.amounts :as ma])
(require '[clojurewerkz.money.currencies :as mc])

(ma/< (ma/amount-of mc/USD 100) (ma/amount-of mc/USD 100))
;= false

(ma/<= (ma/amount-of mc/USD 100) (ma/amount-of mc/USD 100) (ma/amount-of mc/USD 120))
;= true

(ma/>= (ma/amount-of mc/USD 100) (ma/amount-of mc/USD 100) (ma/amount-of mc/USD 120))
;= false

(ma/> (ma/amount-of mc/USD 200) (ma/amount-of mc/USD 100))
;= true


## Changes between 1.0.0-beta2 and 1.0.0
Expand Down

0 comments on commit 015882a

Please sign in to comment.