Well the mathematical way of doing this involves doing a Mod 10 to pull off a digit and then incrementing a number that multiples the mod 10.
I've also seen incrementing an exponent. And I hear from more math oriented people that there are other ways.