G GG Oct 25, 2005 #2 You need to add .ToString(format) where format may look like this "#0.00" Hope it helps.
M Mark Rae Oct 25, 2005 #3 You need to add .ToString(format) where format may look like this "#0.00" Click to expand... But that would return a string value...the OP was looking for a decimal, so would need something like: Math.Round(Convert.ToDecimal(txtTotal.Text), 2);
You need to add .ToString(format) where format may look like this "#0.00" Click to expand... But that would return a string value...the OP was looking for a decimal, so would need something like: Math.Round(Convert.ToDecimal(txtTotal.Text), 2);