Formatting numeric values in a textbox

G

Guest

How do I go about formatting a numeric value for display in a textbox? I
have two textboxes in which I take the values entered into them and convert
them into decimal values via the System.Convert.ToDecimal() function. I need
to take the results of that calculation and display it in a third textbox
with a format of "10.00" if the two values are, for instance, "2.0" and
"5.00". What happens is that it gets displayed as "10.000". :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top