Format string representation of float according to english locale with Clojure

Viewed 504

The locale on my machine is sv_SE.utf8, I want format to follow the conventions of en_GB.utf8 instead when formatting strings. Currently

(format "%f" 0.1) ; => 0,1

instead of

(format "%f" 0.1) ; => 0.1

It seems like I can't pass a locale to format. Is there any other way of working around this problem? I still want to keep using format due to its other capabilities.

1 Answers
Related