Ok my question is, how on earth do you select an individual digit from a float and most importantly an int?

Like for VERY obvious reasons this won't work:
Code:
int i;
i=32;

printf("Your number was: %d%d",i[0],i[1]);
Please note, I KNOW this WILL NOT work.

but is there a mathmatical or hopefully a function that will let you dynamically select a digit, IE let you find the digit in the 10's, 100's or what not?