double roundTo(int decimalPlaces) { double mod = pow(10.0, decimalPlaces).toDouble(); return (this * mod).round().toDouble() / mod; }