Hey,

Let's say I've got a 3 digit integer, say 321, and I want to isolate each digit into its own variable... so the 100's digit would become say Var100, 10's would become Var10, and 1's becomes Var1.

So, I'd run this integer through some little function and ideally end up with:

Var100 = 3

Var10 = 2

Var1 = 1

Does anybody have any ideas how I could actually do this? I'm sure it's not too difficult, but I'm not really the most creative programmer. I know there are other ways to go about this, but it'd require a pretty major rewrite of exisiting code to compensate....

Thanks!

Let's say I've got a 3 digit integer, say 321, and I want to isolate each digit into its own variable... so the 100's digit would become say Var100, 10's would become Var10, and 1's becomes Var1.

So, I'd run this integer through some little function and ideally end up with:

Var100 = 3

Var10 = 2

Var1 = 1

Does anybody have any ideas how I could actually do this? I'm sure it's not too difficult, but I'm not really the most creative programmer. I know there are other ways to go about this, but it'd require a pretty major rewrite of exisiting code to compensate....

Thanks!

## Comment