Convert string to 2 decimal place
var probablyDecimalString = "0.4351242134";
decimal value;
if (Decimal.TryParse(probablyDecimalString , out value))
Console.WriteLine ( value.ToString("0.##") );
else
Console.WriteLine ("not a Decimal");
Well I would do:
var d = "0.4351242134";
Console.WriteLine(decimal.Parse(d).ToString("N2"));
var d = decimal.Parse("0.4351242134");
Console.WriteLine(decimal.Round(d, 2));