S
Simon Law
Hi,
This is unbelievable and totally the craziest thing I've ever seen.
Code:
decimal d1=decimal.Parse("2");
decimal d1=decimal.Parse("2.0");
decimal d1=decimal.Parse("2.00");
string s1=d1.ToString();
string s2=d2.ToString();
string s2=d3.ToString();
gives
s1="2"
s2="2.0"
s3="2.00"
This happens under .NET framework 1.1, but not 1.0.
decimal.ToString() should return a string using "G" format.
Simon.
This is unbelievable and totally the craziest thing I've ever seen.
Code:
decimal d1=decimal.Parse("2");
decimal d1=decimal.Parse("2.0");
decimal d1=decimal.Parse("2.00");
string s1=d1.ToString();
string s2=d2.ToString();
string s2=d3.ToString();
gives
s1="2"
s2="2.0"
s3="2.00"
This happens under .NET framework 1.1, but not 1.0.
decimal.ToString() should return a string using "G" format.
Simon.