The thing is I need to print numbers like "0.019999979000" as "0.02".
The problem using String.format() is that numbers are either printed like "0.019999979" (%s) or like "0.020000000" (%f).
Is there a way to combine those effects without String manipulations?
UPD: the numbers do not always contain 2 digits after the point - that's just an example to show that the values are very close to the rounded