So I was thinking of generating some clever code where the calculator displays a number at the far right of the screen without going off it, but to do that I need to know how to get D on one side of the -> (or = ) sign in the equation 10^D=X.

If someone knows how to find the answer, that would be great!

-mathsman502

EDIT: By the way, D represents the number of digits so the program can check for the size of a number without slow If-Then statements, which can get confusing.

HeLp Me WiTh My MaTh

Summary:

Separate D on one side of the equals sign in the equation 10^D=X