📅  最后修改于: 2022-03-11 14:48:07.293000             🧑  作者: Mango
import 'dart:math';
double roundDouble(double val, int places){
num mod = pow(10.0, places);
return ((val * mod).round().toDouble() / mod);
}