2010年3月16日

摘要: C#格式化数值结果表(格式化字符串) 字符 说明 示例 输出 C 货币 string.Format("{0:C3}", 2) $2.000 D 十进制 string.Format("{0:D3}", 2) 002 E 科学计数法 1.20E+001 1.20E+001 G 常规 string.Format("{0:G}", 2) 2 N 用分号隔开的数字 string.Format("{0:N}"... 阅读全文

posted @ 2010-03-16 11:09 チャチャの楽園 阅读(471) 评论(0) 推荐(0) 编辑


Copyright © 2024 チャチャの楽園
Powered by .NET 8.0 on Kubernetes