I'd like to format my doubles and floats to a certain number of decimal places with SLF4J.
Basically, I'm looking for the equivalent of Java's String.format("%.2f", floatValue)
in SLF4J.
Having read through SLF4J's documentation and googling around I couldn't find a hint whether it has that feature.
I'm using slf4j-api:1.7.6
and slf4j-jdk14:1.7.6
Any help is much appreciated.