#include <stdio.h>
#include <math.h>
int main() {
double x = 1260.0;
int digits = floor( log10( x ) ) + 1;
printf("The number %f has %d digits.", x, digits);
return 0;
}