Z
zlf
Hi,
Run this code will cause format exception. I think the problem is
induced by using System.Globalization.NumberStyles.Currency since I used
customed currency symbol("My Dollar:").
Please tell me how to modify this block of code.Thanks
Console.WriteLine ( NumberValue.ToString ( formatString , n ) );
NumberFormatInfo numberFormatInfo = new
System.Globalization.NumberFormatInfo();
numberFormatInfo.CurrencySymbol = "My Dollar:";
string temp = "My Dollar:234.43";
double ret = double.Parse ( temp ,
System.Globalization.NumberStyles.Currency );
Console.WriteLine ( ret );
Run this code will cause format exception. I think the problem is
induced by using System.Globalization.NumberStyles.Currency since I used
customed currency symbol("My Dollar:").
Please tell me how to modify this block of code.Thanks
Console.WriteLine ( NumberValue.ToString ( formatString , n ) );
NumberFormatInfo numberFormatInfo = new
System.Globalization.NumberFormatInfo();
numberFormatInfo.CurrencySymbol = "My Dollar:";
string temp = "My Dollar:234.43";
double ret = double.Parse ( temp ,
System.Globalization.NumberStyles.Currency );
Console.WriteLine ( ret );