摘要: Format specifierNameDescriptionExamples "C" or "c" Currency Result: A currency value.Supported by: All numeric types.Precision specifier: Number of de 阅读全文
posted @ 2020-06-05 15:08 Javi 阅读(302) 评论(0) 推荐(0) 编辑
摘要: double value; value = 123; Console.WriteLine(value.ToString("00000")); Console.WriteLine(String.Format("{0:00000}", value)); // Displays 00123 value = 阅读全文
posted @ 2020-06-05 15:07 Javi 阅读(402) 评论(0) 推荐(0) 编辑