A method to only keep the given number of digits in this double
this
double toPrecision(int precision) => double.parse(toStringAsFixed(precision));