Zebediah Figura : msvcrt: Perform a base-10 logarithm using integer math.