General information
Category:
Coding, syntax and commands
Title:
How to Format Numeric Values
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only