The easiest way is to use String.Format() with the format specifier:
double a = 0.000006; string formatted = String.Format("{0:F6}", a);
The easiest way is to use String.Format() with the format specifier:
double a = 0.000006; string formatted = String.Format("{0:F6}", a);