Hi, i have a convert problem:
double v3;
foreach (String cvt in sortList2.Keys)
{
if (!(sortList8.ContainsKey(cvt)))
{
sortList2.TryGetValue(cvt, out v3);
sortList8.Add(cvt, v3);
String.Format("{0:0.00}", sortList8[cvt]);
sortList8[cvt] = (v3 * 100 / textBox2.Lines.Length);
// how to convert the result to 2 decimal?
}
}
IDictionaryEnumerator enumerator2 = sortList8.GetEnumerator();
while (enumerator2.MoveNext())
{
Comset.Items.Add("(" + enumerator2.Key.ToString() + ")" + "\t" + enumerator2.Value.ToString() + "\n");
ISUPP.Items.Add(enumerator2.Value.ToString()+"\n");
}