adding decimal points and zero padding for display.

Paul,

Thank you very much!- I eventually got it working. I do not know what I was doing wrong the first time, but here is what has ended up working:

long testNumber = 99999;
void setup()
{
  Serial.begin(57600);  
char buff[6];
sprintf(buff, "%.5ld", testNumber); // buff will be "01238"
char withDot[7];
withDot[0] = buff[0];
withDot[1] = buff[1];
withDot[2] = '.'; // Add the "decimal point"
withDot[3] = buff[2];
withDot[4] = buff[3];
withDot[5] = buff[4];
withDot[6] = '\0'; // The terminating NULL
Serial.println(testNumber);
Serial.println(withDot);
}

void loop(){
}