1: protected void Page_Load(object sender, EventArgs e)
2: { 3: double x = Math.Round(2.5);
4: double y = Math.Round(3.5);
5: Response.Write(
6: string.Format("<li>x={0} y={1}", 7: x, y)
8: );
9: float f = 5000001;
10: float g = 5000002;
11: float h = f + g;
12: Response.Write(
13: string.Format("<li>{0:#,#} + {1:#,#} = {2:#,#}", 14: f, g, h)
15: );
16: }
事情當然沒這麼簡單,如果你真的跑一下上述的Code,會懷疑電腦是不是瘋了...