static double roundDouble(String number, int i) { double mod = pow(10.0, i); return ((double.parse(number) * mod).round().toDouble() / mod); }