java rounding funxtion code example Example: rounding off in java (double)Math.round(value * 100000d) / 100000d