A1VBCode Forums
Home
»
.NET Programming
»
C#
Decimal Point in C#
http://www.a1vbcode.com/vbforums/Topic22680.aspx
By nicegal
-
8/10/2007
Hello!
I have a double array, the problem is that I want the decimal to show even when the value is say "10", but it only shows decimal when there is actually something after the decimal point like it would show the value "10.02" but NOT "10.00". Can anyone help me with this???
By Bharathi
-
8/20/2007
Hi,
Try this code.
int
val = 28;
string
formatted = val.ToString(
"N2"
);