2

不确定这是否正确并且会给我所需的结果。

Dim d As Decimal = 123.456D
Dim s As String = d.ToString()
4

2 回答 2

4

String.FormatC(货币)格式说明符一起使用:

Dim d As Decimal = 123.456D
Dim s as String = String.Format("{0:C}", d)

这会将您的小数转换为具有客户区域设置指定格式的货币字符串。

于 2013-09-17T17:54:13.167 回答
1
Dim d As Decimal = 123.456D
Dim s As String = d.ToString("C");
于 2013-09-17T17:55:23.693 回答