Liking cljdoc? Tell your friends :D

Fé is a library for money formatting.

CircleCI Dependencies Status License

Leiningen/Boot

[fe "0.1.0"]

Documentation

(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).

Contribution

Conventions

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close