Round to specified decimal places
double roundToPlaces(int places) { final factor = 1 / (1 / (10 * places)); return (this * factor).round() / factor; }