BLUE.NET

-------- 众里寻她千百度

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  159 随笔 :: 1 文章 :: 29 评论 :: 0 引用

公告

double d1 = 0;
            d1 
= double.Parse(this.TextBox1.Text);
            
string sdf = d1.ToString("c");
            
this.TextBox1.Text= String.Format("{0:c}元",d1);
            
//不能 this.TextBox1.Text= String.Format("{0:c}元",this.TextBox1.Text); 必须是double 或int 
            this.TextBox1.Text = sdf;
posted on 2005-06-14 17:16 blue.net 阅读(116) 评论(0) 编辑 收藏