<body>
<%
Dim number As Integer = 5601314
<%
Dim number As Integer = 5601314
'貨幣Response.Write("C = " & String.Format("{0:C}", number) & "<br />")
Response.Write("C1 = " & String.Format("{0:C1}", number) & "<br />")
Response.Write("C7 = " & String.Format("{0:C7}", number) & "<br />")
'數值Response.Write("D = " & String.Format("{0:D}", number) & "<br />")
Response.Write("D1 = " & String.Format("{0:D1}", number) & "<br />")
Response.Write("D7 = " & String.Format("{0:D7}", number) & "<br />")
'指數Response.Write("E = " & String.Format("{0:E}", number) & "<br />")
Response.Write("E1 = " & String.Format("{0:E1}", number) & "<br />")
Response.Write("E7 = " & String.Format("{0:E7}", number) & "<br />")
'固定點Response.Write("F = " & String.Format("{0:F}", number) & "<br />")
Response.Write("F1 = " & String.Format("{0:F1}", number) & "<br />")
Response.Write("F7 = " & String.Format("{0:F7}", number) & "<br />")
'一般Response.Write("G = " & String.Format("{0:G}", number) & "<br />")
Response.Write("G1 = " & String.Format("{0:G1}", number) & "<br />")
Response.Write("G7 = " & String.Format("{0:G7}", number) & "<br />")
'數字Response.Write("N = " & String.Format("{0:N}", number) & "<br />")
Response.Write("N1 = " & String.Format("{0:N1}", number) & "<br />")
Response.Write("N7 = " & String.Format("{0:N7}", number) & "<br />")
'百分比Response.Write("P = " & String.Format("{0:P}", number) & "<br />")
Response.Write("P1 = " & String.Format("{0:P1}", number) & "<br />")
Response.Write("P7 = " & String.Format("{0:P7}", number) & "<br />")
'十六進位Response.Write("X = " & String.Format("{0:X}", number) & "<br />")
Response.Write("X1 = " & String.Format("{0:X1}", number) & "<br />")
Response.Write("X7 = " & String.Format("{0:X7}", number) & "<br />")
%>
</body>
Response.Write("C1 = " & String.Format("{0:C1}", number) & "<br />")
Response.Write("C7 = " & String.Format("{0:C7}", number) & "<br />")
'數值Response.Write("D = " & String.Format("{0:D}", number) & "<br />")
Response.Write("D1 = " & String.Format("{0:D1}", number) & "<br />")
Response.Write("D7 = " & String.Format("{0:D7}", number) & "<br />")
'指數Response.Write("E = " & String.Format("{0:E}", number) & "<br />")
Response.Write("E1 = " & String.Format("{0:E1}", number) & "<br />")
Response.Write("E7 = " & String.Format("{0:E7}", number) & "<br />")
'固定點Response.Write("F = " & String.Format("{0:F}", number) & "<br />")
Response.Write("F1 = " & String.Format("{0:F1}", number) & "<br />")
Response.Write("F7 = " & String.Format("{0:F7}", number) & "<br />")
'一般Response.Write("G = " & String.Format("{0:G}", number) & "<br />")
Response.Write("G1 = " & String.Format("{0:G1}", number) & "<br />")
Response.Write("G7 = " & String.Format("{0:G7}", number) & "<br />")
'數字Response.Write("N = " & String.Format("{0:N}", number) & "<br />")
Response.Write("N1 = " & String.Format("{0:N1}", number) & "<br />")
Response.Write("N7 = " & String.Format("{0:N7}", number) & "<br />")
'百分比Response.Write("P = " & String.Format("{0:P}", number) & "<br />")
Response.Write("P1 = " & String.Format("{0:P1}", number) & "<br />")
Response.Write("P7 = " & String.Format("{0:P7}", number) & "<br />")
'十六進位Response.Write("X = " & String.Format("{0:X}", number) & "<br />")
Response.Write("X1 = " & String.Format("{0:X1}", number) & "<br />")
Response.Write("X7 = " & String.Format("{0:X7}", number) & "<br />")
%>
</body>
產生的結果去試試看就知道了
沒有留言:
張貼留言