Using ions for dollar matching

This commit is contained in:
2023-03-27 10:58:18 -07:00
parent e3fbc50e6a
commit 952aa38951
5 changed files with 16 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
(ns iol-ion.query)
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defn dollars-0? [amt]
(< -0.001 amt 0.001))
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defn dollars= [amt1 amt2]
(dollars-0? (- amt1 amt2) ))