fixed point decimal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am doing calculations on numbers and then I want to display them in a datagrid that always has 2 decimal places. I am doing something like

Dim Size As Decimal
Dim Space As Decimal
...
...
...
Size = Decimal.Round(Size, 2)
Space = Decimal.Round(Space, 2)

If the number happens to round to say 95 I want it to display as 95.00. How can I do that?

Thanks in advance.
Christel
 
Hi Christel,

Take a look at Binding.Format Event.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Christel said:
I am doing calculations on numbers and then I want to display them in a
datagrid that always has 2 decimal places. I am doing something like
 

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

Back
Top