How do I round numbers in C# in a text box?
Posted on 2004-10-18
I am currently building a Web Page in Visual Studio.NET.... (C#). I am trying to figure out how to 'round numbers" that I am pulling into text boxes in my Web Form from a DB. Currently, When I view the page the numbers are coming up as "0.96544456754363." I want to round them to "0.97". How would I do this in C#?
PLEASE HELP... I know there is probably an easy way to do this,....