I have a decimal column that contains percentages. I’m converting these so that they display as their whole # counterparts. For example, if a value is 0.35 in the database, I’m displaying it as 35 in the textbox. However, some of the values are 0.00, but don’t display in the textbox as 0. In fact, nothing shows up at all.
What would be the proper ToString() format to use to achieve my desired result?
Have you tried
.ToString("N0")or am I missing something?