Link to home
Start Free TrialLog in
Avatar of bripena
bripena

asked on

How to Round Numbers???

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#?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of der_jth
der_jth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bripena
bripena

ASKER

Hold on- I tried and now I get this error below....

c:\inetpub\wwwroot\CREAMPROFILE1\CREAMFORM.aspx.cs(110): The type or namespace name 'CREAMPROFILE1' could not be found (are you missing a using directive or an assembly reference?)
That error is not related to the double rounding statement but rather another code change you've done. It's hard to say what's causing the error, but perhaps it's some sort of namespace renaming operation you've been doing.