I am having a problem with long division, and hoping you guys can help me out. I am trying to write an algorithm to do long division on strings on numbers.
I'll use 520 / 15 as an example:
1x10^1 + 5x10^0 | 5x10^2 + 2x10^1 + 0x10^0
How do I do this? I don't even know how to find the first digit!