Hacker News new | ask | show | jobs
by Robin_Message 739 days ago
In the final log10 version, can't you just solve both problems at once by adding 1 to the input?

    math.ceil(math.log10(x+1))