roundTo method

double roundTo(
  1. int places
)

Implementation

double roundTo(int places) {
  return (this * 10.pow(places)).roundToDouble() / 10.pow(places);
}