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

  • :未知  Դ:internet  :2007-5-20 16:44:26  ؼ:c#
  • x Hexadecimal {0:x4} System.FormatException cf90

    Custom number formatting:

    Specifier Type Example Output (Passed Double 1500.42) Note
    0 Zero placeholder {0:00.0000} 1500.4200 Pads with zeroes.
    # Digit placeholder {0:(#).##} (1500).42
    . Decimal point {0:0.0} 1500.4
    , Thousand separator {0:0,0} 1,500 Must be between two zeroes.
    ,. Number scaling {0:0,.} 2 Comma adjacent to Period scales by 1000.
    % Percent {0:0%} 150042% Multiplies by 100, adds % sign.
    e Exponent placeholder {0:00e+0} 15e+2 Many exponent formats available.
    ; Group separator see below
    Ҷƪл˵?
  • һƪ关于who 命令的使用详解
    һƪWindows CMD命令大全