• λ我爱Aspx >> Asp.Net >> C#数值结果表(格式化字符串)
  • C#数值结果表(格式化字符串)

  • :未知  Դ:internet  :2007-5-20 16:44:26  ؼ:c#
  • Enumerations

    Specifier Type
    g Default (Flag names if available, otherwise decimal)
    f Flags always
    d Integer always
    x Eight digit hex.

    Some Useful Examples

    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.

    Ҷƪл˵?
  • һƪ关于who 命令的使用详解
    һƪWindows CMD命令大全