A simple function that allows you to specificy the number of decimals when rounding Uses Java's built-in Math.round() method combined with a well-known rounding trick ...