static S formatDouble_significant2(double d, int digits) { digits -= Math.floor(Math.log10(abs(d))+1); ret formatDouble(d, max(0, digits)); }