Is there a way to implement the log function witch works for string numbers without converting the string to a int? example of string number: char *stringNumber = "432" the string represents only integers(whole Numbers) but they can be near infinitely long the log should return an int as well(represented as a string) if i result is a float the decimal part should be removed (no rounding)
i know that for numbers you can implement:
int logn(int n, int x)
//n is the number , x is the base
{
if (n <= r-1)return 0;
return (1 + logn(n/x, x);
}
but for a string i have no idea how to do it