return i // 10**pos % 10; if (i == 0) return 0; return float_to_int(log10(i)) + 1; c += 1; lp = lp * 10 + d; lp = d; c = 1; lp = lp * 10 + d; c += 1; p = lp; log("p: " + int_to_str(p)); log("lp: " + int_to_str(lp)); log("c: " + int_to_str(c)); log("p: " + int_to_str(p)); log("lp: " + int_to_str(lp));