I want to round this double:
3.499999999999999
to:
3.50
And I already used these two methods:
<
You can use Precision class of apache commons-math
double result = Precision.round(3.499999999999999, 2);