ToDecimal to 2 digits after the decimal

  • Thread starter Thread starter Guest
  • Start date Start date
You need to add .ToString(format) where format may look like this
"#0.00"

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);
 
Back
Top