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