G
Guest
Why in the world is this happening:
double MyCount=0.00;
MyCount = (100 * 2611508) / 37792454;
Response.Write(MyCount.ToString("F2");
Always return a whole # (in this case 6). The value should be:
6.9101307896015432075408492922952
(as large as the Windows calc would display).
I really want the 6.91 or rounded to the nearest 10th
Ive tried defining MyCount as float, double, decimal. Any string format I
use either "N2", "F2", "P", always returns .00
What am I doing wrong? grrrrrrr
double MyCount=0.00;
MyCount = (100 * 2611508) / 37792454;
Response.Write(MyCount.ToString("F2");
Always return a whole # (in this case 6). The value should be:
6.9101307896015432075408492922952
(as large as the Windows calc would display).
I really want the 6.91 or rounded to the nearest 10th
Ive tried defining MyCount as float, double, decimal. Any string format I
use either "N2", "F2", "P", always returns .00
What am I doing wrong? grrrrrrr