[RESOLVED][2008] Putting comma on a Numeric or String
Elow everyone could anyone tell me how to put comma on a Numeric or String on my Datagridview?
Quote:
i.e.
---Given No. ---- Converted No.-----
12345455.2321 = 12,345,455.2321
And also I need help upon rounding off my numbers like the ff.
i.e.
----Given No. --- Converted No.
12345455.2321 = 12.3M
Thank in advance guys..:wave:
Re: [2008] Putting comma on a Numeric or String
Code:
Dim num2convert As Decimal = 12345455.2321D
Dim convtdNUM As String '12,345,455.2321
convtdNUM = num2convert.ToString("#,##0.0000")
Re: [2008] Putting comma on a Numeric or String
to millions
Code:
num2convert /= 1000000
convtdNUM = num2convert.ToString("#,##0.0M")