Rounding number to decimal places
double roundDouble(int precision) { num mod = pow(10.0, precision); return ((this * mod).round().toDouble() / mod); }