1.精度轉換
/// double轉換字符串
inline std::string transString(double d,int len) {
int first = round(d * pow(10, len)) / pow(10, len);
int last = round(d * pow(10, len)) - (first * pow(10, len));
return to_string(first) + "." + to_string(abs(last));
}
2.