Rounds value to precision decimal places.
value
precision
static double round(num value, [int precision = 0]) { final f = math.pow(10, precision); return (value * f).round() / f; }