There are a few ways to convert numbers to strings.

Leading Zeroes
beans.ToString(“D4″); 0007
string.Format(“{0:00}”, beans); 07

Precision
string.Format(“{0:0.000}”, beans); 7.1234