fixDouble4 static method

double fixDouble4(
  1. double value
)

将double转换为4位小数

Implementation

static double fixDouble4(double value) {
  return double.parse(value.toStringAsFixed(4));
}