I have several textboxes that has numeric values. But the values are coming back like this:
1245.0000
1674.0000
7819.0000
I can't get rid of the 4 zeros at the end. I want the numbers to come over as whole numbers.
My Code:
PPTotal.Text = Convert.ToDecimal(dr(16)).ToString("#.00")
FixTotal.Text = Convert.ToDecimal(dr(17)).ToString("#.00")
TotalValue.Text = "$ " + Convert.ToDecimal(dr(16) + dr(17)).ToString("#.00")
Any Suggestions? Thanks in advance.
1245.0000
1674.0000
7819.0000
I can't get rid of the 4 zeros at the end. I want the numbers to come over as whole numbers.
My Code:
PPTotal.Text = Convert.ToDecimal(dr(16)).ToString("#.00")
FixTotal.Text = Convert.ToDecimal(dr(17)).ToString("#.00")
TotalValue.Text = "$ " + Convert.ToDecimal(dr(16) + dr(17)).ToString("#.00")
Any Suggestions? Thanks in advance.