void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
int iNum = 14159;
String myString = String(iNum);
//char acBuf[16 + 2]; // added 1 for NULL termination and 1 for the minus sign
//int length = sprintf( acBuf, "%16d", iNum );
Serial.print(myString.length());
}
void loop() {
// put your main code here, to run repeatedly:
}