|
-
August 9th, 2007, 05:50 AM
#1
Simple Casting problem
hi, i cannot find the answer of this in the net.
string a = "4.00";
double d = Convert.ToDouble(a);
double d1 = d * 3;
MessageBox.Show(d1.ToString());
it displays "1200" but i want it to display 12.0 or 12.
How can i convert the string "4.00" to double 4.00 because it converts the string "4.00" to double 400.
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|