Fé is a library for money formatting.
[fe "0.1.0"]
(require '[fe.core :as fe])
(fe/fmt 10000 "EUR") ;; "10 000.00 EUR"
(fe/fmt 10000 "EUR" {:decimal-pos 0}) ;; "10 000 EUR"
(fe/fmt 10000 "EUR" {:part-sep ","}) ;; "10,000.00 EUR"
(fe/fmt 10000 "EUR" {:decimal-sep ","}) ;; "10 000,00 EUR"
(fe/fmt 10000 "£" {:currency-pos :prefix, :part-sep ","}) ;; "£10,000.00"
fmt
function uses a non-breakable space by default (as Unicode character).
.editorconfig
and The Clojure Style Guide#
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close