我爱Aspx >> Asp.Net >> C#数值结果表(格式化字符串)
| Specifier | Type |
| g | Default (Flag names if available, otherwise decimal) |
| f | Flags always |
| d | Integer always |
| x | Eight digit hex. |
String.Format("{0:$#,##0.00;($#,##0.00);Zero}", value);
This will output "$1,240.00" if passed 1243.50. It will output the same format but in parentheses if the number is negative, and will output the string "Zero" if the number is zero.
Ҷƪл˵?
用浏览器来接收C# 的程序返回的时..[05-20]
使用C# 编写扩展存储过程[05-20]
C#正则表达式应用范例[05-20]
C#编程发送邮件[05-20]
c# 支持SMTP服务器认证的邮件发送..[05-20]
C# 格式化字符串 String.Format[05-20]
C# 格式化字符串 String.Format[05-20]
C#实现控件数组[05-20]
用C#读取图片的EXIF信息的方法[05-20]
用Visual C#实现文件下载[05-20]
Windows CMD命令大全[05-20]
Windows 蓝屏错误代码说明一览表[05-20]
Visual Studio Add-Ins Every De..[05-20]
ASP通用分页类[05-20]
XML 如何推动下一代信息共享应用..[05-20]
基于XML的三层C/S模型[05-20]
用Asp.net实现简单的文字水印[05-20]
用浏览器来接收C# 的程序返回的时..[05-20]
使用C# 编写扩展存储过程[05-20]
C#正则表达式应用范例[05-20]