How to Round Double value in C# .Net

Vasanth
 
on Oct 17, 2012 02:50 AM
3647 Views

Hi

I am having member varibale as

 "double Salary = 15000.0315"

I need a code to show in a currency format and round of that value. I need the expected result

as  15,000.

Is that possible in c#. Please let me know.

Thanks.

Have a great day.

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
vinayak
 
on Oct 17, 2012 03:08 AM

try,

Math.Round(Salary, 1).ToString();