convert to double

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

I have a function which converts a calculation into double

dr = Convert.ToDouble (tbl.Rows[0], provider) / campCustomers * 100;

The returned value looks like this:

0.0132622796653082877191290300

I would like that this value is format to show only the last two decimals
behind the . and rounded

Like this:

0.01

How do I do this?

Thanks

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top