Unlike Double
, Decimal
preserves zeros, e.g.
Decimal d0 = 200M;
Decimal d1 = 200.0M;
Decimal d2 = 200.00M;
// 200
String St0 = d0.ToString();
// 200.0 (or 200,0 depending on CultureInfo.CurrentCulture)
String St1 = d1.ToString();
// 200.00
String St2 = d2.ToString();
So it seems that in the process of computations, database reading etc. one value appeared to be 200M
while the other 200.00M
.