double value = 23.8764367843; double rounded = (double) Math.round(value * 100) / 100; ...
stackoverflow.com