Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Format Numeric Values
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to Format Numeric Values
Miscellaneous
Thread ID:
01252494
Message ID:
01252494
Views:
76
Hi. re asp.net Web Forms
I have a value in a dbl variable and I want to show it on a
form
My code is: txtTotal.Text = dbf.ToString();

I would like to format this always with 2 decimal points, and
right aligned in the text box on the form .

Any ideas on how to do this in c# code appreciated.
regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform