2015年12月8日

String.Format 大全

摘要: 0、0的格式化string.Format("{0:8D8}", 3)//第一个8表示空8个位置,后一个8表示用0填写最多8位数据1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元)string.Format("{0:C}",0.2) 结果为:¥0.20 ... 阅读全文

posted @ 2015-12-08 21:15 norsd 阅读(458) 评论(0) 推荐(0) 编辑

导航