static double log10(double d) { ret Math.log(d)/Math.log(10); }