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
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