Hey,
I've got a label and i want it to go to 2 decimal places.
The problem is if a whole number is entered it will only display 9 not 9.00
Any solutions to this?
Thanks.
Printable View
Hey,
I've got a label and i want it to go to 2 decimal places.
The problem is if a whole number is entered it will only display 9 not 9.00
Any solutions to this?
Thanks.
MSDN has plenty of information on date/time and numeric format strings. You should read it.vb.net Code:
myLabel.Text = myNumber.ToString("n2")
Thanks, I'll check if MSDN has my answer first next time.