alexfacciorusso
09/29/2015, 12:19 PMfun Float.toString(precision: Int) = java.lang.String.format("%.${precision}f", this)
for formatting floats and doubles to string with a given precision?
If not, I will suggest it for addition simple smile (edited)
(p.s. I taken that method from a stackoverflow answer by @abreslav (http://stackoverflow.com/a/23088000/2329437)