static String doubleToString(double num) { return num.toStringAsFixed(num.truncateToDouble() == num ? 0 : 2); }