how do I find an integer length? in pseudocode:

int whatup=100;
length=intlth(whatup);
//length now equals 3

is that possible?