Chapter

Generalized Rounding

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How can a generalized rounding method round numbers to any decimal place?

    "Recall that the math library provides a Math.round() method that rounds a number to the nearest whole number. We’ve had need to round to cents as well. We now have the ability to write a method to do