public static string ValueFormat(int decimals) { if (decimals < 1) return "0"; return "0." + new string ('0', decimals); }