funcool/cuerdas

format with numbers

Closed this issue · 1 comments

It seems that cuerdas/format does not support formatting number, whereas it works for
goog.string:

(cuerdas/format "%.2f" 5.34531) =>  "%.2f"
(js/goog.string.format "%.2f" 5.34531) => "5.35"

Yet I dont't know clojurescript well enough to patch it myself - sorry.
Regards, martin

Yeah, this is because it does not formats numbers. It just a "interpolation". Maybe the name is confusing. cuerdas/format is not analogous to goog.string.format.