int whole_digits(float number)
{
int x, counter;
for(x=0; number/pow(10,x)>=1; x++)
counter++;
}
return(counter);