Format a number to display a comma when larger than a thousand

前端 未结 3 894
萌比男神i
萌比男神i 2021-01-11 19:56

I am writing some code in Visual Basic.net and have a question.

If I have a long number, that is larger than 1000, how can I format this value to be 1,000 (with a co

3条回答
  •  孤城傲影
    2021-01-11 20:35

    For those wanting to do a currency with commas and decimals use the following: .ToString("$0,00.00")

提交回复
热议问题