By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,543 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

fixed point decimal

P: n/a
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
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Christel,

Take a look at Binding.Format Event.

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

"Christel" <an*******@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.