static long roundUpToPowerOfTen_double(double d) { ret round(exp10(ceil(log10(d)))); }