static String formatDouble(double d, int digits) { S format = digits <= 0 ? "0" : "0." + rep(digits, '#'); ret decimalFormatEnglish(format, d); }