double getRoundedValue(double value, int precision) { return double.parse(value.toStringAsFixed(precision)); }