consider
float fNum = (Convert.ToInt32(textBox1.Text) / Convert.ToInt32(textBox2.Text));
label1.Text = String.Format("{0:n}", fNum);
If fNum contained the value 3.3333333333 label1.Text will contain the value 3.33
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========